Samples response values from an icenReg fit conditional on covariates, but not
censoring intervals. To draw response samples conditional on covariates and
restrained to intervals, see
icenReg model fit
type of samples See details for options
Number of samples
Returns a matrix of samples. Each row of the matrix corresponds with a subject with the
covariates of the corresponding row of
newdata. For each column of the matrix,
the same sampled parameters are used to sample response variables.
newdata is left blank, will provide estimates for original data set.
There are several options for how to sample. To get random samples without accounting
for error in the estimated parameters
imputeType ='fixedParSample' takes a
random sample of the response variable, conditional on the response interval,
covariates and estimated parameters at the MLE. Alternatively,
imputeType = 'fullSample' first takes a random sample of the coefficients,
(assuming asymptotic normality for the ic_par) and then takes a random sample
of the response variable, conditional on the response interval,
covariates, and the random sample of the coefficients.
1 2 3 4 5 6 7 8
Loading required package: survival Loading required package: Rcpp Loading required package: coda
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.