get.contrasts.ci.cosinor: Get contrasts and confidence interval for MESOR, Amplitude,...

get.contrasts.ci.cosinorR Documentation

Get contrasts and confidence interval for MESOR, Amplitude, Acrophase

Description

The 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. The output are bootstrapped estimates, 95 for MESOR, Amplitude and acrophase.

Usage

get.contrasts.ci.cosinor(
  fit,
  contrast.frm,
  nsim = 500,
  parallel = "multicore",
  ncpus = 8,
  conftype = "norm",
  conflevel = 0.95,
  ...
)

Arguments

fit

the object from lmer()

contrast.frm

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

nsim

the number of simulations, positive integer; the bootstrap B (or R) for bootMer function.Default is 500.

parallel

the type of parallel operation to be used (if any) for bootMer function. The default is "multicore".

ncpus

integer: number of processes to be used in parallel operation: typically one would choose this to be the number of available CPUs.Default is 8.

conftype

a character string representing the type of interval required.The value must be one of "norm", "basic","perc".

conflevel

The confidence level required, default is 0.95.

...

additional argument(s) for methods.

Examples

library(lme4)
library(emmeans)
data("db.model")
f<-fit.cosinor.mixed(y="hrv", x="gender", random="1|participant_id", data=db.model)
summary(f)
get.contrasts.ci.cosinor(f,contrast.frm="~gender")


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