estimate.cf {depCensoring} | R Documentation |
Estimate the control function
Description
This function estimates the control function for the endogenous variable based on the provided covariates. This function is called inside estimate.cmprsk.R.
Usage
estimate.cf(XandW, Z, Zbin, gammaest = NULL)
Arguments
XandW |
Design matrix of exogenous covariates. |
Z |
Endogenous covariate. |
Zbin |
Boolean value indicating whether endogenous covariate is binary. |
gammaest |
Vector of pre-estimated parameter vector. If |
Value
List containing the vector of values for the control function and the regression parameters of the first step.
[Package depCensoring version 0.1.5 Index]