covariate_plot_helper: Extract Data for Covariate Plot

View source: R/helperfunctions_plots.R

covariate_plot_helperR Documentation

Extract Data for Covariate Plot

Description

This function gives as an output the data set necessary to plot the covariate effects. It is meant to be general enough to also include more than two dimensions.

Usage

covariate_plot_helper(model, mcomp, dimlabels, int_include = TRUE,
  multi = TRUE, m_fac = 1.96)

Arguments

model

The multifamm model from which to extract the estimates.

mcomp

The extracted model components as given by the internal function extract_components().

dimlabels

The dimensions of the model.

int_include

Include the estimate and uncertainty of the scalar intercept in the values of the functional intercept. Defaults to TRUE.

multi

Is the model a multifamm or a sparseFLMM model. Defaults to TRUE (multifamm model).

m_fac

Multiplication factor to represent the confidence interval of the estimates. Defaults to 1.96.

Details

Note that the final data set might be differently ordered depending on whether the model or the model components are used as a starting point.


alexvolkmann/multifammPaper documentation built on Sept. 9, 2024, 8:47 p.m.