Description Usage Arguments Value Author(s) See Also

View source: R/famTEMsel.main.R

`predict_famTEMsel`

makes predictions given a (new) set of functional covariates `newX`

, a (new) set of scalar covariates `newZ`

and a (new) vector of treatment indicators `newA`

based on a constrained functional additive model `famTEMsel.obj`

.
Specifically, `predict_famTEMsel`

predicts the responses y based on the (X,Z)-by-A interaction effect (plus the A main effect) portion of the full model that includes the unspecified X main effect term.

1 2 |

`famTEMsel.obj` |
a |

`newX` |
a (n by p) list of new values for the functional covariates X at which predictions are to be made; the jth element of the list corresponds to a n-by-n.eval[j] matrix of the observed jth functional covariates; n.eval[j] represents the number of evaluation points of the jth functional covariates; if |

`newZ` |
a (n by q) matrix of new values for the scalar covariates Z at which predictions are to be made; if |

`newA` |
a (n by 1) vector of new values for the treatment A at which predictions are to be made; if |

`type` |
the type of prediction required; the default "response" gives the predicted responses y based on the whole model; the alternative "terms" gives the component-wise predicted responses from each of the p components (and plus the treatment-specific intercepts) of the model. |

`lambda.index` |
an index of the tuning parameter |

`predicted` |
a (n-by- |

`U` |
a n-by-(p+q) matrix of the index variables; the first p columns correspond to the 1-D projections of the p functional covariates and the last q columns correspond to the q scalar covariates. |

Park, Petkova, Tarpey, Ogden

`famTEMsel`

,`cv.famTEMsel`

, `plot_famTEMsel`

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.