Estimation of regression models for sparse asynchronous longitudinal observations using the last value carried forward approach.
asynchLV(data.x, data.y, lType = "identity", verbose = TRUE, ...)
A list is returned, the elements of which are named vectors:
The estimated model coefficients.
The standard error for each coefficient.
The estimated z-value for each coefficient.
The p-value for each coefficient.
A data.frame of covariates. The structure of the data.frame must be {patient ID, time of measurement, measurement(s)}. Patient IDs must be of class integer or be able to be coerced to class integer without loss of information. Missing values must be indicated as NA. All times will automatically be rescaled to [0,1].
A data.frame of response measurements. The structure of the data.frame must be {patient ID, time of measurement, measurement}. Patient IDs must be of class integer or be able to be coerced to integer without loss of information. Missing values must be indicated as NA. All times will automatically be rescaled to [0,1].
An object of class character indicating the type of link function to use for the regression model. Must be one of {"identity","log","logistic"}.
An object of class logical. TRUE results in screen prints.
Ignored.
Hongyuan Cao, Donglin Zeng, Jason P. Fine, and Shannon T. Holloway
For lType = "log" and lType = "logistic", parameter estimates are obtained by minimizing the estimating equation using R's optim() with method="Nelder-Mead"; all other settings take their default values.
For lType = "identity", parameter estimates are obtained use solve().
Cao, H., Zeng, D., and Fine, J. P. (2015) Regression Analysis of sparse asynchronous longitudinal data. Journal of the Royal Statistical Society: Series B, 77, 755-776.
data(asynchDataTI)
res <- asynchLV(data.x = TI.x,
data.y = TI.y,
lType = "identity")
Run the code above in your browser using DataLab