lmervis: lmervis

Description Usage Arguments Examples

View source: R/lmervis.R

Description

This function produces line graphs based on lmer() models. It can incorporate multiple slope variables, especially useful for time series analyses.

Usage

1
2
3
lmervis(df, model, x, xlevels = NULL, byvars = NULL, bylevels = NULL,
  covars = NULL, covars.lv = NULL, cint = FALSE, nsim = 500,
  seed = 1234, outtype = "plot", xcov = NULL, xcov.lv = NULL)

Arguments

df

Datafram.

model

A lmer() model object.

x

Variable to appear on the x axis.

xlevels

A character vector of levels. "identity" utilizes existing levels.

byvars

A list of by variables.

bylevels

A list containing the corresponding levels of the by variables. "identity" utilizes existing levels, "sd" returns -1 and +1 SD relative to mean.

timevary

Any variable that varies in conjunction with time.

timevarylevels

List of levels of timevary variables. Must be in a list and of equal length to x.

combinedx

Numerical vector. If the time series (x and timevary) are split in ways that do not overlap, combinedx should be included. It must be a list of equal length to x and timevary.

combinedxname

The name of the combinedx variable.

Examples

1
n()

fiksdala/fiksdal documentation built on Jan. 9, 2022, 10:54 p.m.