mixedModel2Fit_multiple_design: Fitting mixed models of one random effect

Description Usage Arguments Examples

Description

Adapted from statmod package's mixedModel2Fit function. This function includes the additional feature of fitting a different design matrix for each gene (row) of the input data matrix.

Usage

1
mixedModel2Fit_multiple_design(design, block, yy)

Arguments

design

Design matrix.

block

Phentype for the blocking factor (vector).

yy

Gene (feature) by sample matrix.

Examples

1
2
3
4
5
6
mixedModel2Fit_multiple_design()
data_matrix <- pheno_data
design <- model.matrix(~ 1+ as.factor(individual) + protein, 
                       data = pheno_data)
block <- as.factor(pheno_data$biorep)
yy <- pheno_data$phos

jhsiao999/Humanzee documentation built on May 19, 2019, 9:28 a.m.