plmm_format {plmmr}R Documentation

PLMM format: a function to format the output of a model constructed with plmm_fit

Description

PLMM format: a function to format the output of a model constructed with plmm_fit

Usage

plmm_format(fit, p, std_X_details, fbm_flag, plink_flag)

Arguments

fit

A list of parameters describing the output of a model constructed with plmm_fit

p

The number of features in the original data (including constant features)

std_X_details

A list with 3 items: * 'center': the centering values for the columns of X * 'scale': the scaling values for the non-singular columns of X * 'ns': indicesof nonsingular columns in std_X

fbm_flag

Logical: is the corresponding design matrix filebacked? Passed from plmm().

plink_flag

Logical: did these data come from PLINK files? Note: This flag matters because of how non-genomic features are handled for PLINK files – in data from PLINK files, unpenalized columns are not counted in the p argument. For delimited files, p does include unpenalized columns. This difference has implications for how the untransform() function determines the appropriate dimensions for the estimated coefficient matrix it returns.

Value

A list with the components:


[Package plmmr version 4.2.1 Index]