get.contrasts.ci.cosinor | R Documentation |
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.
get.contrasts.ci.cosinor(
fit,
contrast.frm,
nsim = 500,
parallel = "multicore",
ncpus = 8,
conftype = "norm",
conflevel = 0.95,
...
)
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. |
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.