Description Usage Arguments Details Value Examples
6 linear models are compared using Cross Validation on the basis of the least error of prediction
1 | bestModel_mu(errMod_Mu.list)
|
errMod_Mu.list |
A list containing the error of prediction of wMuC_lg for each model and each bootstrap samples |
The 6 linear models are :
mod1 : wMuC_lg ~ 1
mod2 : wMuC_lg ~ wMuA_lg
mod3 : wMuC_lg ~ wMuA_lg + wSigmaA_lg
mod4 : wMuC_lg ~ wMuA_lg + I(wMuA_lg^2)
mod5 : wMuC_lg ~ wMuA_lg + I(wMuA_lg^2) + wSigmaA_lg
mod6 : wMuC_lg ~ wMuA_lg + I(wMuA_lg^2) + wSigmaA_lg + I(wSigmaA_lg^2)
The function return the formula of the best selected model
1 2 3 4 5 6 | data(cipr)
ciprKP <- subset_data(cipr, Class,6)
PAC.bt <- lapply(ciprKP.bt,est_PAC,Class)
errMod_mu <- lapply(PAC.bt,msep_mu)
errMod_sigma <- lapply(PAC.bt,msep_sigma)
bm_mu <- bestModel_mu(errMod_mu)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.