Description Usage Arguments Value
View source: R/basicFunctions.R
Finds best linear combination of several FlexCoDE estimates
1 2 3 4 5 6 7 | combineFlexCoDE(
objectCDE_binded,
xValidation,
zValidation,
xTest = NULL,
zTest = NULL
)
|
objectCDE_binded |
An object of the class FlexCoDE_binded with a fitted CDE, typically fitted used |
xValidation |
Covariates x used to validate (tune) the model (one x observation per row). |
zValidation |
Responses z used to validate (tune) the model (matrix with 1 column). Each row corresponds to a row of the xValidation argument |
xTest |
Covariates x used to estimate risk of final model (one observation per row; same number of columns as xTrain). Default is NULL |
zTest |
Responses z used to estimate risk of final model (matrix with one column; one observation per row). Default is NULL |
Returns an object of the class "combinedFlexCoDE" which contains the weights best linear combination of the input models, together with all fitted models
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.