Two-Part Model for Semicontinuous Outcomes
A two-part model for semicontinuous outcomes such as spending: a binary model for any use, and a separate model for the amount among users.
반연속 결과의 2부분 모형 — 지출처럼 반연속인 결과를 위해 사용 여부의 이분 모형과 사용자 안에서 양을 설명하는 모형을 따로 두는 2부분 모형입니다.
Runs Hurdle and Two-Part Models with: type set to “continuous”.
기본 방법(Hurdle and Two-Part Models)에 다음 설정을 고정해 실행합니다: type = continuous.
Most patients have zero cost and the rest have skewed positive costs; how do I model expected cost?
대부분 환자는 비용이 0이고 나머지는 치우친 양수 비용인데, 기대 비용을 어떻게 모형화하나요?
The first part gives the probability of any cost and the second the mean among those with cost; their product is the overall mean. It is Hurdle and Two-Part Models run with type = continuous, so the output carries the same diagnostics and report layout.
When to use Two-Part Model for Semicontinuous Outcomes
- The outcome is zero for many units and continuous positive for the rest.
- Health-care costs, expenditures or amounts consumed.
When to use something else
- There are hardly any zeros; a single GLM for positive data is simpler.
- You need a different value for type; use Hurdle and Two-Part Models directly.
What you still provide
- Data: a table (CSV or Excel) with an outcome variable and predictor (feature) columns.
Assumptions and requirements
The same as for Hurdle and Two-Part Models:
- The zero and positive parts are conditionally independent given predictors, unless the correlated Cragg option is used.
- The positive part follows the chosen distribution (truncated Poisson or NB2, log-normal or gamma).
- For log-normal smearing, homoskedastic errors on the log scale.
What the analysis reports
The output of Hurdle and Two-Part Models, with the preset shown in the settings:
- Logit coefficients for P(y > 0)
- Positive-part coefficients (count, log-OLS or gamma)
- Average marginal effects on the unconditional mean split by part
- Log-likelihood and AIC, with Poisson, negative binomial and zero-inflated AICs for count outcomes
- Optional Cragg double-hurdle fit by joint maximum likelihood: probit participation with a truncated-normal or lognormal intensity, or the double hurdle in which either hurdle produces a zero
- Error correlation between the two hurdles with a likelihood-ratio test against independence (lognormal and double-hurdle forms)
- Tobit log-likelihood and AIC for comparison, and a likelihood-ratio test of the Tobit restriction against the truncated-normal Cragg model
How this is validated
검증 근거
This variant runs the same engine as Hurdle and Two-Part Models with the settings above fixed, so the evidence is that method’s: results cross-checked against r. No separate checks of this preset are claimed. Read the base method’s validation record.
이 설정 묶음은 Hurdle and Two-Part Models와 같은 엔진으로 돕니다. 검증 근거는 기본 방법의 것이며, 이 설정만 따로 검증했다고 주장하지 않습니다.
Other variants of Hurdle and Two-Part Models
- Hurdle Count Regression
- Hurdle Poisson Regression
- Two-Part Model with Gamma Positives
- Heteroskedastic Cragg hurdle model
Run this variant
- Data you need
- a table (CSV or Excel) with an outcome variable and predictor (feature) columns
- Price
- Same as Hurdle and Two-Part Models: 600 credits for one analysis up to 10,000 rows (complexity level 4); larger or wider data costs more. Optional methodologist review: 2400 credits.
- Checking
- Results cross-checked against R, as recorded for Hurdle and Two-Part Models (see its checks)
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.