msep_mu: Estimating the Mean Squared Error of Prediction for Mu...

Description Usage Arguments Details Value Examples

Description

6 linear models linear are compared (cf Details)

Usage

1
msep_mu(PAC.df)

Arguments

PAC.df

A dataframe containing the weighted parameters in log10 scale (wMuA_lg, wMuC_lg, wSigmaA_lg, wSigmaC_lg)

Details

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)

Value

The function return a data frame with the MSEP of the 6 linear models

Examples

1
2
3
4
5
6
library(ACTR)
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)

cdv04/ACTR documentation built on May 13, 2019, 2:42 p.m.