batch_emm: batch_emm

View source: R/Emmreml-related.R

batch_emmR Documentation

batch_emm

Description

run emmreml for multiple variable in one time

Usage

batch_emm(
  info,
  variable,
  resids,
  rel,
  lps_name = "treatment",
  numcore = 3,
  sname = "sname.x",
  plot = F,
  savedir = "NA",
  x_axis_size = 20
)

Arguments

info

meta info data frame containing lps and other variable

variable

a vector of variables to be included in emmreml

lps_name

name of "LPS"/"NULL" column, default to "treatment"

numcore

default to 3

sname

default to "sname.x"

plot

plot p histogram or not, default to F

savedir

if you want to save the picture, specify a dir

x_axis_size

font size of the x axis title, default to 20

resids_female

GE residuals data frame, will automatically be transformed to matrix

rel_female

relatedness data frame, same as above

Value

a combined result datarame

Examples

batch_emm(meta_info,c("age","rank"),resids,rel)

lycium0605/SHfunction documentation built on Feb. 5, 2023, 11:14 a.m.