Learn R Programming

fastFMM (version 0.3.0)

G_generate: Creates the design matrix that allows for estimation of G

Description

The function `G_estimate` uses a MoM method, and `G_estimate_randint` is a special case of `G_estimate`.

Usage

G_generate(data, Z_lst, RE_table, MoM, ID = "id")

Value

List containing Z matrices and indices (unsure)

Arguments

data

Data frame that contains the predictors and outcome

Z_lst

Transposed list of Z matrices from the univariate fits

RE_table

Table of random effects and interactions, generated from the `lmerMod` object

MoM

Integer to determine type of MoM estimation.

ID

Name of the ID factor, assuming names of `HHat` are generated from the same table in the same order

Details

Helper function for variance estimation in `fui`.