run_dauer_stan: run_dauer_stan

Description Usage Arguments Examples

Description

Function runs a stan glmm for dauer data

Usage

1
run_dauer_stan(df, type, parameters, group, intercept)

Arguments

df

input dataset. Requires a "genotype" column. See type for data column types

type

"dauer" (default),"dauer-grouped". For dauer data, needs to have raw counts, with "dauer" column and "n" column. For grouped data, must have group.id column - usually interaction(genotype,condition)

group

for grouped data, specify the name of the grouping factor

intercept

optional argument for intercept in the model. use for direct estimation of the reference group. default is TRUE

Examples

1
2
 df %>% run_dauer_stan(parameters)
 run_dauer_stan(df, type = "dauer-grouped", group = "food", intercept = "false")

mikeod38/dauergut documentation built on May 30, 2019, 7:16 p.m.