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

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

create.boot.FUN.meanR Documentation

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

Description

Bootstrap function takes in a fitted merMod object as input and returns the statistics (e.g. standard error) of mean MESOR, amplitude and acrophase in each group.

Usage

create.boot.FUN.mean(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.mean<-bootMer(f1.b,FUN = create.boot.FUN.mean(contrast.frm='~T0toT14+Tneg7toT7'), nsim =500, parallel = "multicore", ncpus=8)



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