predict_PC: Prediction of muC_reg and SigmaC_reg

Description Usage Arguments Value Examples

Description

The function takes in argument the observed weigted parameters of ED50 i.e mu_A and sigma_A, and the formula of the best models for prediction of mu_C_act and sigma_C_act and return the muC_act and SigmaC_act They are estimated using a cross validation. When parameters of one class are predicted data of that class are not taken in acount in the regression step

Usage

1
predict_PC(PAC_obs, form_mu, form_sigma)

Arguments

PAC_obs

dataframe containing the observed acute and chronic weighted parameters

form_mu

Formula of the best model selected to predict muC_act

form_sigma

Formula of the best model selected to predict SigmaC_act

Value

a list with the Chronic predicted parameters (MuC_act and SigmaC_act) , regression coefficients for MuC_reg and SigmaC_reg and sd of residuals for both regressions NB : means of residuals = 0 by definition

Examples

1
2
3
4
5
library(ACTpckg)
data(cipr)
ciprKP <- subset_data(cipr, Class,6)
PAC_obs<-est_PAC(ciprKP,Class)
PC_pred <- predict_PC(PAC_obs,bm_mu, bm_sigma)

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