kimma_lmerel: Run kimma linear mixed effects model with kinship

View source: R/kimma_lmerel.R

kimma_lmerelR Documentation

Run kimma linear mixed effects model with kinship

Description

Run kimma linear mixed effects model with kinship

Usage

kimma_lmerel(
  model_lme,
  to_model_gene,
  gene,
  kin_subset,
  use_weights,
  patientID,
  metrics
)

Arguments

model_lme

Character model created in kmFit

to_model_gene

Data frame formatted in kmFit, subset to gene of interest

gene

Character of gene to model

kin_subset

Pairwise kinship matrix

use_weights

Logical if gene specific weights should be used in model. Default is FALSE

patientID

Character of variable name to match dat$targets to kinship row and column names.

metrics

Logical if should calculate model fit metrics such as AIC, BIC, R-squared. Default is FALSE

Value

Linear mixed effect with kinship results data frame for 1 gene


BIGslu/kimma documentation built on May 30, 2024, 10:09 p.m.