{
  "_id": "6a102d9aacfb0bcc41c93e55",
  "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-05-13 05:40:50 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",
  "MD5sum": "fbadab7707b6f81b18a10a39916e7d84",
  "_user": "yajie1020",
  "_type": "src",
  "_file": "twopartm_0.1.0.tar.gz",
  "_fileid": "2f9b54138a12432a5e58b5a1f12c77d40508cf92c33b4644039f208b3d859f34",
  "_filesize": 623262,
  "_sha256": "2f9b54138a12432a5e58b5a1f12c77d40508cf92c33b4644039f208b3d859f34",
  "_created": "2026-05-13T05:40:50.000Z",
  "_published": "2026-05-22T10:19:06.892Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77360422598,
      "time": 113,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6962469563"
    },
    {
      "job": 77360422561,
      "time": 113,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6962468284"
    },
    {
      "job": 77360422261,
      "time": 156,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6962468934"
    },
    {
      "job": 77360422543,
      "time": 188,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6962475523"
    },
    {
      "job": 77360422007,
      "time": 150,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6962444010"
    },
    {
      "job": 77360421863,
      "time": 86,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7158181650"
    },
    {
      "job": 77360422488,
      "time": 105,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6962466427"
    },
    {
      "job": 77360422727,
      "time": 81,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6962461066"
    },
    {
      "job": 77360422621,
      "time": 77,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6962460152"
    }
  ],
  "_buildurl": "https://github.com/r-universe/yajie1020/actions/runs/25780607997",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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",
    "uuid": 62952321
  },
  "_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"
  },
  "_downloads": {
    "count": 275,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/twopartm"
  },
  "_searchresults": 13,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "extra/twopartm.html",
    "manual.pdf"
  ],
  "_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.414973347970818,
  "_indexed": true,
  "_nocasepkg": "twopartm",
  "_universes": [
    "yajie1020"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-05-13T05:42:40.000Z",
      "distro": "noble",
      "commit": "f94c566708c58cea095d7b9680d11e8df6325936",
      "fileid": "54f5ff90acdc6e664faec5638452983cd4fa59dcdffe2e5c3745717785fe42f1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yajie1020/actions/runs/25780607997"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-05-13T05:42:35.000Z",
      "distro": "noble",
      "commit": "f94c566708c58cea095d7b9680d11e8df6325936",
      "fileid": "9ab4f4e1b75d174efecf537ef2c2a1d904ab1c893739c40a70b5e7c8cfb53e3e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yajie1020/actions/runs/25780607997"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-05-13T05:42:42.000Z",
      "commit": "f94c566708c58cea095d7b9680d11e8df6325936",
      "fileid": "fd3d368f47260b97cfddd0c5e53a1951ff14468f7b829b944dfb9cb81bdddeb5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yajie1020/actions/runs/25780607997"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-05-13T05:43:08.000Z",
      "commit": "f94c566708c58cea095d7b9680d11e8df6325936",
      "fileid": "e5fb92fc0ba38efa3d1f6dbcee996bcfed27dd4deb9351e93875c8a60f665e5f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yajie1020/actions/runs/25780607997"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-05-13T05:42:24.000Z",
      "commit": "f94c566708c58cea095d7b9680d11e8df6325936",
      "fileid": "5c2c0752ed1d05e45cd3e55ff8eb7c4d2025c6151ae66d65950beba4db6697ce",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yajie1020/actions/runs/25780607997"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-05-13T05:41:56.000Z",
      "commit": "f94c566708c58cea095d7b9680d11e8df6325936",
      "fileid": "2363aaaaf19e25ad69e834b077481b395909885e8658680716df19f3040a323e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yajie1020/actions/runs/25780607997"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-05-13T05:41:53.000Z",
      "commit": "f94c566708c58cea095d7b9680d11e8df6325936",
      "fileid": "42a5da04b81df3c496b19eee28bab6c755bbb8c1c8cf01fffc0daae4fc7c3993",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yajie1020/actions/runs/25780607997"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-05-22T10:18:42.000Z",
      "commit": "f94c566708c58cea095d7b9680d11e8df6325936",
      "fileid": "30d7be2740cccfeaece9d55a4e84dca6c10afa82ac5e7fc77a2405332b9b89d6",
      "status": "success",
      "buildurl": "https://github.com/r-universe/yajie1020/actions/runs/25780607997"
    }
  ]
}