{
  "_id": "6a5353cd9b92047c28d58151",
  "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-07-12 08:40:53 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/88be11974aeb0ab9284f86c3963e4ff3e750d665fffffe7df9a65a746e3dbe35",
  "_filesize": 623413,
  "_sha256": "88be11974aeb0ab9284f86c3963e4ff3e750d665fffffe7df9a65a746e3dbe35",
  "_expires": "2026-10-20T08:43:56.000Z",
  "_created": "2026-07-12T08:40:53.000Z",
  "_published": "2026-07-12T08:43:57.585Z",
  "_jobs": [
    {
      "job": 86632714824,
      "time": 119,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8258095204"
    },
    {
      "job": 86632714829,
      "time": 126,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8258095982"
    },
    {
      "job": 86632714830,
      "time": 150,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8258096403"
    },
    {
      "job": 86632714834,
      "time": 118,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8258092565"
    },
    {
      "job": 86632528833,
      "time": 154,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8258079668"
    },
    {
      "job": 86632714816,
      "time": 87,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8258091034"
    },
    {
      "job": 86632714826,
      "time": 79,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8258090008"
    },
    {
      "job": 86632714839,
      "time": 98,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8258092532"
    },
    {
      "job": 86632714827,
      "time": 76,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8258089638"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/yajie1020/actions/runs/29186158471",
  "_status": "success",
  "_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": 1
  },
  "_downloads": {
    "count": 322,
    "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/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.4471580313422194,
  "_indexed": true,
  "_nocasepkg": "twopartm",
  "_universes": [
    "yajie1020"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-07-12T08:42:45.000Z",
      "distro": "resolute",
      "commit": "f94c566708c58cea095d7b9680d11e8df6325936",
      "fileid": "https://r2.ropensci.org/2d059f34a0db9912610e5c7941562ff5957aef7f051cf45734899a39471a8035",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yajie1020/actions/runs/29186158471"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-07-12T08:42:49.000Z",
      "distro": "resolute",
      "commit": "f94c566708c58cea095d7b9680d11e8df6325936",
      "fileid": "https://r2.ropensci.org/5dab9c580f3d326258a47b09ad092c88e322706407736e8ff460d0343df481d3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yajie1020/actions/runs/29186158471"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-07-12T08:43:01.000Z",
      "commit": "f94c566708c58cea095d7b9680d11e8df6325936",
      "fileid": "https://r2.ropensci.org/25f5c552265f817ab6b44043c3f6544d874676167bf2566b0eec38184f345c92",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yajie1020/actions/runs/29186158471"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-07-12T08:42:31.000Z",
      "commit": "f94c566708c58cea095d7b9680d11e8df6325936",
      "fileid": "https://r2.ropensci.org/648f68421fc5f59eb4aad959cdddfb3a59e6f08fedabe064e189dc69c6da7182",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yajie1020/actions/runs/29186158471"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-07-12T08:42:35.000Z",
      "commit": "f94c566708c58cea095d7b9680d11e8df6325936",
      "fileid": "https://r2.ropensci.org/617287f4dbf4f5e773a319367ea1c75b14aae2af1faf6d2be72479cc1075b3c7",
      "status": "success",
      "buildurl": "https://github.com/r-universe/yajie1020/actions/runs/29186158471"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-07-12T08:41:55.000Z",
      "commit": "f94c566708c58cea095d7b9680d11e8df6325936",
      "fileid": "https://r2.ropensci.org/c22e70dc272f01913fcabd2e4b073e975ddb72f161309402d885bc6827b28b51",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yajie1020/actions/runs/29186158471"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-07-12T08:42:23.000Z",
      "commit": "f94c566708c58cea095d7b9680d11e8df6325936",
      "fileid": "https://r2.ropensci.org/5ccf0ee8f6786d734a206a3cb495970f2c0bdbc05b4ca0cac2822d70f497df5c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yajie1020/actions/runs/29186158471"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-07-12T08:41:57.000Z",
      "commit": "f94c566708c58cea095d7b9680d11e8df6325936",
      "fileid": "https://r2.ropensci.org/80253196fc12530d8ae164ad18ae825edb5a652838dc4b2142015cf1c258e8e5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/yajie1020/actions/runs/29186158471"
    }
  ]
}