Description Usage Arguments Value References Examples
This function implements the estimator of Gilleskie and Mroz (2004), which estimates the conditional mean costs by adaptively modeling the conditional hazard function and back-transforming into an estimate of the conditional mean. For more description, we refer users to the original paper.
1 2 3 4 5 6 7 8 9 10 11 |
Y |
A numeric outcome variable |
X |
A |
newX |
A |
family |
Gaussian only |
obsWeights |
Observation-level weights (not currently used) |
kValues |
Number of intervals to bin the variable into in order to estimate the discrete hazard function |
maxPoly |
The largest degree polynomial to be used in fitting the discrete hazard function |
pValThresh |
The threshold for p-values used in the covariate selection process |
... |
Other arguments (not currently used) |
pred
Predicted outcomes based on predictors in newX
fit
A list with named entries object
(the fitted hazard regression object),
maxK
(the selected number of partitions), and hK
(the mean outcome in each partition)
Gilleskie DB, Mroz TA (2004). “A flexible approach for estimating the effects of covariates on health expenditures.” Journal of Health Economics, 23(2), 391–418.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.