View source: R/predict.face.sparse.r
predict.face.sparse | R Documentation |
Predict subject-specific curves based on a fit from "face.sparse".
## S3 method for class 'face.sparse' predict(object, newdata,...)
object |
a fitted object from the R function "face.sparse". |
newdata |
a data frame with three arguments:
(1) |
... |
further arguments passed to or from other methods. |
This function makes prediction based on observed data for each subject. So for each subject,
it requires at least one observed data. For the time points prediction is desired but
no observation is available, just make the corresponding data$y
as NA.
object |
A "face.sparse" fit |
newdata |
Input |
y.pred,mu.pred,Chat.pred, Chat.diag.pred, var.error.pred |
Predicted/estimated objects at
the observation time points in |
rand_eff |
if |
... |
... |
Luo Xiao <lxiao5@ncsu.edu>
Luo Xiao, Cai Li, William Checkley and Ciprian Crainiceanu, Fast covariance estimation for sparse functional data, Stat. Comput., doi: 10.1007/s11222-017-9744-8.
#See the examples for "face.sparse".
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.