just.get.means.cosinor: Get MESOR(M), Amplitude(A), Acrophase

View source: R/just.get.means.cosinor.R

just.get.means.cosinorR Documentation

Get MESOR(M), Amplitude(A), Acrophase

Description

Get the estimated marginal means for the specified factors or factor combinations in a linear model, and transform to non-linear parameters MESOR, amplitude, and acrophase.

Usage

just.get.means.cosinor(fit, contrast.frm, ...)

Arguments

fit

the lmer object from lmer()

contrast.frm

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

...

other arguments passed on to methods

Examples

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

 just.get.means.cosinor(fit=f1.a, contrast.frm='~T0toT14')



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