generateAnimalModelInput: Generate input for BSFG model in Matlab

Description Usage Arguments Value Examples

Description

Generate input for BSFG model in Matlab

Usage

1
2
generateAnimalModelInput(formula, data, A, line = c("all", "t", "h", "hp",
  "s", "sp"), IDcol = "ID", out_folder = NULL)

Arguments

formula

formula specifing fixed effects and response variables

data

data.frame with data, default is ratonesdf

A

relatinship matrix from pedigree

line

line for matrix estimation. defaults to "all" for within-groups model

IDcol

column with individual Ids matching the A matrix rownames

out_folder

folder to create the Matlab input files

Value

list with animal model input objects

Examples

1
2
3
4
5
6
7
8
data(ratonesdf)
data(ratones_ped)
formula = paste0("cbind(",
          paste(names(dplyr::select(ratonesdf, IS_PM:BA_OPI)),
                collapse = ", "), ") ~ SEX + AGE")
animal_model_data = generateAnimalModelInput(formula, ratonesdf,
                                             ratones_ped$A,
                                             line = "all", out_folder = "./")

diogro/ratones documentation built on May 24, 2019, 4:01 a.m.