mixed_model: 'Linear mixed model'

Description Usage Arguments Value Examples

View source: R/mixed_model.R

Description

Get the fixed effect from a linear mixed model using 'nlme' package.

Usage

1
2
mixed_model(data = df, model = KRN ~ Pedigree, random = ~1 | Farm/Rep,
  trait = "KRN")

Arguments

data

data to fit the model. [data.frame]

model

Fixed effects of the model, i.e. KRN ~ Genotype. [model]

random

Random effects of the model, i.e. ~1 | Farm/Rep. [model]

trait

Name of the phenotypic trait. [character]

Value

return a batch of shell scripts.

Examples

1
blue <- mixed_model(data = df, model = KRN ~ Pedigree, random = ~1 | Farm/Rep, trait = "KRN")

yangjl/quantgen documentation built on May 4, 2019, 2:29 p.m.