G_generate function

Creates the design matrix that allows for estimation of G

Creates the design matrix that allows for estimation of G

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

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

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

Returns

List containing Z matrices and indices (unsure)

Details

Helper function for variance estimation in fui.

  • Maintainer: Erjia Cui
  • License: GPL (>= 3)
  • Last published: 2025-03-13