Description Usage Arguments Value References Examples
This function implements the estimator of Wang and Zhou (2010). The estimator estimates the conditional mean costs by modeling the conditional quantiles of a transformed cost. Using the equivariance property of quantiles to monotone transformations, the quantile estimators may be transformed back to the conditional mean cost on the original scale.
1 2 3 4 5 6 7 8 9 10 11 12 |
Y |
A numeric outcome variable |
X |
A |
newX |
A |
family |
Gaussian only |
obsWeights |
Observation-level weights (not currently used) |
g |
Transformation to apply to |
m |
Number of quantiles to compute |
c |
Constant used to determine truncation level for transforming quantiles to conditional mean |
b |
Constant used to determine truncation level for transforming quantiles to conditional mean |
... |
Other arguments (not currently used) |
pred
Predicted outcomes based on predictors in newX
fit
A list with named entries object
(the fitted rq
regression object),
alpha
(the controlled level of trimming based), and g_inv
(the inverse function of the inputted g
)
Wang HJ, Zhou X (2010). “Estimation of the retransformed conditional mean in health care cost studies.” Biometrika, 97(1), 147–158.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.