{
  "_id": "6acbadc3fe5cc25786e92391",
  "Package": "twopartm",
  "Type": "Package",
  "Title": "Two-Part Model with Marginal Effects",
  "Version": "0.1.0",
  "Authors@R": "c(person(\"Yajie\", \"Duan\", email = \"yajieritaduan@gmail.com\", role = c(\"aut\",\"cre\")),\nperson(\"Birol\", \"Emir\", email = \"birol.emir@pfizer.com\", role = \"aut\"),\nperson(\"Griffith\", \"Bell\", email = \"griffith.bell@pfizer.com\", role = \"aut\"),\nperson(\"Javier\", \"Cabrera\", email = \"cabrera@stat.rutgers.edu\", role = \"aut\"),\nperson(\"Pfizer Inc.\", role = c(\"cph\", \"fnd\")))",
  "Maintainer": "Yajie Duan <yajieritaduan@gmail.com>",
  "Description": "Fit two-part regression models for zero-inflated data. The\nmodels and their components are represented using S4 classes\nand methods. Average Marginal effects and predictive margins\nwith standard errors and confidence intervals can be calculated\nfrom two-part model objects. Belotti, F., Deb, P., Manning, W.\nG., & Norton, E. C. (2015) <doi:10.1177/1536867X1501500102>.",
  "License": "GPL (>= 2)",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "NeedsCompilation": "no",
  "RoxygenNote": "7.2.1",
  "Packaged": {
    "Date": "2026-10-11 15:33:49 UTC",
    "User": "root"
  },
  "Author": "Yajie Duan [aut, cre], Birol Emir [aut], Griffith Bell [aut],\nJavier Cabrera [aut], Pfizer Inc. [cph, fnd]",
  "Repository": "https://yajie1020.r-universe.dev",
  "Date/Publication": "2022-10-14 07:50:02 UTC",
  "RemoteUrl": "https://github.com/cran/twopartm",
  "RemoteRef": "HEAD",
  "RemoteSha": "f94c566708c58cea095d7b9680d11e8df6325936",
  "_user": "yajie1020",
  "_type": "src",
  "_file": "twopartm_0.1.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/d9bdc795d65cdcb4b8e2d29e6ed303bb3702549c645b068193c74226e79388d8",
  "_filesize": 621907,
  "_sha256": "d9bdc795d65cdcb4b8e2d29e6ed303bb3702549c645b068193c74226e79388d8",
  "_expires": "2027-01-19T15:39:45.000Z",
  "_created": "2026-10-11T15:33:49.000Z",
  "_published": "2026-10-11T15:39:47.458Z",
  "_buildurl": "https://github.com/r-universe/yajie1020/actions/runs/38151626158",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 114506652690,
      "time": 100,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11707196190"
    },
    {
      "job": 114506652650,
      "time": 106,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11705884663"
    },
    {
      "job": 114506652769,
      "time": 177,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11707760118"
    },
    {
      "job": 114506652643,
      "time": 157,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11707331124"
    },
    {
      "job": 114506175535,
      "time": 138,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11705539932"
    },
    {
      "job": 114506652701,
      "time": 81,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11706787090"
    },
    {
      "job": 114506652699,
      "time": 55,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11706752030"
    },
    {
      "job": 114506652729,
      "time": 55,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11707016404"
    },
    {
      "job": 114506652700,
      "time": 70,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11706414102"
    }
  ],
  "_upstream": "https://github.com/cran/twopartm",
  "_commit": {
    "id": "f94c566708c58cea095d7b9680d11e8df6325936",
    "author": "Yajie Duan <yajieritaduan@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.1.0\n",
    "time": 1665733802
  },
  "_maintainer": {
    "name": "Yajie Duan",
    "email": "yajieritaduan@gmail.com",
    "login": "yajie1020",
    "description": "",
    "uuid": 62952321
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 2.10",
      "role": "Depends"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    }
  ],
  "_owner": "cran",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 4,
  "_contributors": [
    {
      "user": "yajie1020",
      "count": 1,
      "uuid": 62952321
    }
  ],
  "_userbio": {
    "uuid": 62952321,
    "type": "user",
    "name": "Yajie Duan",
    "followers": 2
  },
  "_downloads": {
    "count": 317,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/twopartm"
  },
  "_searchresults": 14,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/readme.html",
    "extra/readme.md",
    "extra/twopartm.html"
  ],
  "_realowner": "yajie1020",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2022-10-14"
    }
  ],
  "_exports": [
    "AME",
    "coef",
    "FiellerRatio",
    "logLik",
    "margin",
    "plot",
    "predict",
    "residuals",
    "show",
    "summary",
    "tpm"
  ],
  "_datasets": [
    {
      "name": "bioChemists",
      "title": "Articles by Graduate Students in Biochemistry Ph.D. Programs",
      "object": "bioChemists",
      "class": [
        "data.frame"
      ],
      "fields": [
        "art",
        "fem",
        "mar",
        "kid5",
        "phd",
        "ment"
      ],
      "rows": 915,
      "table": true,
      "tojson": true
    },
    {
      "name": "meps",
      "title": "A Sample of Medical Expenditure Panel Survey 2004 data",
      "object": "meps",
      "class": [
        "data.frame"
      ],
      "fields": [
        "duid",
        "dupersid",
        "hieuidx",
        "wtdper",
        "age",
        "female",
        "race_bl",
        "race_oth",
        "eth_hisp",
        "famsize",
        "ed_hs",
        "ed_hsplus",
        "ed_col",
        "ed_colplus",
        "lninc",
        "reg_midw",
        "reg_south",
        "reg_west",
        "anylim",
        "mcs12",
        "pcs12",
        "ins_mcare",
        "ins_mcaid",
        "ins_unins",
        "ins_dent",
        "exp_tot",
        "exp_dent",
        "exp_self",
        "use_disch",
        "use_los",
        "use_dent",
        "use_rx"
      ],
      "rows": 19386,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "AME",
      "title": "Average Marginal Effect (AME) with CIs for Two-part Model Objects",
      "topics": [
        "AME",
        "AME,twopartm-method"
      ]
    },
    {
      "page": "bioChemists",
      "title": "Articles by Graduate Students in Biochemistry Ph.D. Programs",
      "topics": [
        "bioChemists"
      ]
    },
    {
      "page": "coef-methods",
      "title": "Method for Function 'coef' for Two-part Model Objects in Package 'twopartm'",
      "topics": [
        "coef,twopartm-method"
      ]
    },
    {
      "page": "FiellerRatio",
      "title": "Ratio of two Gaussian random variables with CI by Fieller's theorem",
      "topics": [
        "FiellerRatio",
        "FiellerRatio,numeric-method"
      ]
    },
    {
      "page": "logLik-methods",
      "title": "Method for Function 'logLik' for Two-part Model Objects in Package 'twopartm'",
      "topics": [
        "logLik,twopartm-method"
      ]
    },
    {
      "page": "margin",
      "title": "Predictive Margins with CIs for Two-part Model Objects",
      "topics": [
        "margin",
        "margin,twopartm-method"
      ]
    },
    {
      "page": "meps",
      "title": "A Sample of Medical Expenditure Panel Survey 2004 data",
      "topics": [
        "meps"
      ]
    },
    {
      "page": "plot-methods",
      "title": "Method for Function 'plot' for Two-part Model Objects in Package 'twopartm'",
      "topics": [
        "plot,twopartm,missing-method"
      ]
    },
    {
      "page": "predict-methods",
      "title": "Method for Function 'predict' for Two-part Model Fits in Package 'twopartm'",
      "topics": [
        "predict,twopartm-method",
        "predict-methods"
      ]
    },
    {
      "page": "residuals-methods",
      "title": "Method for Function 'residuals' for Two-part Model Objects in Package 'twopartm'",
      "topics": [
        "residuals,twopartm-method"
      ]
    },
    {
      "page": "tpm",
      "title": "Fit Two-part Regression Models for Zero-inflated Data",
      "topics": [
        "print.twopartm",
        "show,twopartm-method",
        "summary,twopartm-method",
        "tpm",
        "tpm,formula-method"
      ]
    },
    {
      "page": "twopartm-class",
      "title": "Class 'twopartm'",
      "topics": [
        "twopartm-class"
      ]
    }
  ],
  "_readme": "https://github.com/cran/twopartm/raw/HEAD/README.md",
  "_rundeps": [
    "data.table",
    "MASS"
  ],
  "_score": 2.4471580313422194,
  "_indexed": true,
  "_nocasepkg": "twopartm",
  "_universes": [
    "yajie1020"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-10-11T15:35:23.000Z",
      "distro": "resolute",
      "commit": "f94c566708c58cea095d7b9680d11e8df6325936",
      "fileid": "https://r2.ropensci.org/49cfc6a3edbd20c6607df47f2c8198518eeb09350d2a241a8b83271d5b3d3f48",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yajie1020/actions/runs/38151626158"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-10-11T15:35:26.000Z",
      "distro": "resolute",
      "commit": "f94c566708c58cea095d7b9680d11e8df6325936",
      "fileid": "https://r2.ropensci.org/3926aa2e0b4125667f2270e4471e88740cd1236d179ec9e0c21bc546433ddd24",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yajie1020/actions/runs/38151626158"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-10-11T15:38:32.000Z",
      "commit": "f94c566708c58cea095d7b9680d11e8df6325936",
      "fileid": "https://r2.ropensci.org/59855267571ad55de964fe4144c65aefe778478c3ad8dfb3ea950c770ed43963",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yajie1020/actions/runs/38151626158"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-10-11T15:38:01.000Z",
      "commit": "f94c566708c58cea095d7b9680d11e8df6325936",
      "fileid": "https://r2.ropensci.org/c99d9db0c79d18bb7dc5843e541b7521d5a86c603e8bd4f224800cacc2f8027d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yajie1020/actions/runs/38151626158"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-10-11T15:35:27.000Z",
      "commit": "f94c566708c58cea095d7b9680d11e8df6325936",
      "fileid": "https://r2.ropensci.org/b1989160d195f9ccc4d04bad5f1ab4079c97a25a1afe3ab9d9ee5f319b232305",
      "status": "success",
      "buildurl": "https://github.com/r-universe/yajie1020/actions/runs/38151626158"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-10-11T15:34:41.000Z",
      "commit": "f94c566708c58cea095d7b9680d11e8df6325936",
      "fileid": "https://r2.ropensci.org/8d43e328dcd1edd146f611e05159eacb10637d63163cb6879237cd41ec91335f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yajie1020/actions/runs/38151626158"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-10-11T15:34:40.000Z",
      "commit": "f94c566708c58cea095d7b9680d11e8df6325936",
      "fileid": "https://r2.ropensci.org/b0fbb27afa9cdbb9a68e2d9d6489cb2b2a899d87f37743f28cec19ff7d9c21be",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yajie1020/actions/runs/38151626158"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-10-11T15:34:47.000Z",
      "commit": "f94c566708c58cea095d7b9680d11e8df6325936",
      "fileid": "https://r2.ropensci.org/025bb2c68e01343296c9745bdebf81703aaa1eac1cdadacac1175f06345034d5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yajie1020/actions/runs/38151626158"
    }
  ]
}