predictedUnivar2DataFrame: Transform Output of Covariate Predictions of Univariate...

predictedUnivar2DataFrameR Documentation

Transform Output of Covariate Predictions of Univariate Models to Data Frame

Description

This function helps to compare univariate sparseFLMM models to multiFAMM models. This functions converts the predictions of the covariate effects of one or two models as given by the function predict_sparseFLMM_covar() to a data.frame.

Usage

predictedUnivar2DataFrame(aco_pr, epg_pr, effect, grid = seq(0, 1, length.out
  = 100))

Arguments

aco_pr

Output of the first model (dimension aco).

epg_pr

Output of the second model (dimension epg). Can be NULL.

effect

Which effect to extract. If intercept is specified (1), then the scalar intercept is added.

grid

Grid of evaluation points. Defaults to observations on [0,1].

Details

This functions' name in the thesis was predict2DataFrame().


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