create.boot.FUN.cont: Bootstrap to get standard error of MESOR, amplitude and...

View source: R/create.boot.FUN.cont.R

create.boot.FUN.contR Documentation

Bootstrap to get standard error of MESOR, amplitude and acrophase contrasts

Description

Bootstrap function takes in a fitted merMod object as input and returns the statistics (e.g. standard error) of pair-wise contrasts of MESOR, amplitude and acrophase

Usage

create.boot.FUN.cont(contrast.frm)

Arguments

contrast.frm

a string formula specifying the names of the predictors over which emmeans are desired.

Examples


f1.b<-lmer(hrv~age+gender+T0toT14+Tneg7toT7+
           gender*rrr+gender*sss+
           T0toT14*rrr+T0toT14*sss+
           Tneg7toT7*rrr+Tneg7toT7*sss+
           (1|participant_id),
           data=db.model, na.action = na.omit)

boot.cont<-bootMer(f1.b,FUN = create.boot.FUN.cont(contrast.frm='~T0toT14+Tneg7toT7'), nsim =500, parallel = "multicore", ncpus=8)




maytesuarezfarinas/cosinoRmixedeffects documentation built on Oct. 30, 2024, 9:31 p.m.