twopartm
0.1.0Two-Part Model with Marginal Effects
0packages depend
3.9Kdownloads / year
–test coverage
13/13checks pass
Overview
About
Fit two-part regression models for zero-inflated data. The models and their components are represented using S4 classes and methods. Average Marginal effects and predictive margins with standard errors and confidence intervals can be calculated from two-part model objects. Belotti, F., Deb, P., Manning, W. G., & Norton, E. C. (2015) doi:10.1177/1536867X1501500102.
Install
Health
CRAN checks
13OK
Slowest check: 1.5 min · r-oldrel-windows-x86_64
Code health
None
Tests · ratio 0.00
not tracked
Coverage
5
Dependencies · direct
Check history
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
Documentation
READMEYes · 548 wordsVignettesNopkgdown siteNoNEWSNoCode of conductNoContributing guideNo
- Examples that run
- 100%
- Documented parameters
- not tracked
- Return-value docs
- not tracked
- References docs
- 92%
Downloads
3.9K
CRAN downloads in the past year
Rank #12,210 · ~11/day · ~328/mo
Daily download trend is not available in this view yet.
26030 days
87490 days
3.9K1 year
Also on97 r2u30 autocran
Dependencies
Declared dependencies
1 external dependency (excludes base and recommended)
Depends (1)
R >= 2.10
Imports (5)
methodsgraphicsstatsdata.tableMASS
LinkingTo (0)
none
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Nothing depends on this yet.
Code & Tests
Code Composition
R 1,653 (62%)Rd 992 (38%)
Code characteristics
Object systems
S4 class1S4 generic4S4 method11
- Cyclomatic complexity
- 3.0 median / 18 max
Test coverage
Line coverage
–
Expression
–
Tests / Examples
–
Functions
15 0 exported
Complexity
6.5 avg / 18 max
Call network
15 nodes / 25 edges
Call graph
Open call graph →Loading call graph…
Lowest coverage
Per-function coverage is not measured for this package yet.
Datasets
Bundled datasets · 2
| Name | Class | Rows × Cols | Also ships in |
|---|---|---|---|
| bioChemists | data.frame | 915 × 6 | in 3 packages |
| meps | data.frame | 19,386 × 32 | – |
People & History
People (5)
Maintainer (1)
Author, Maintainer
Authors (4)
Copyright holders (1)
Copyright holder, Funder
Funders (1)
Copyright holder, Funder
Package Timeline
1 release. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- 0.1.0Latest2026-03-10 · current release
- RR 4.5.0 released · 2025-04-11
0 of 2 selectedCompare selected
Package metadata
- First published
- 2022-10-14
- Total releases
- 1 / 4 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 2.10
- Bundled data
- 392 KB / 2 files
- Download size
- 415 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet