Skip to contents

blouch.reg.mlm.prep - Setup dat file to run multilevel multi-optima model

Usage

blouch.reg.mlm.prep(
  trdata,
  Y,
  Y_error,
  reg.column,
  hl.prior,
  vy.prior,
  optima.prior,
  sigma.prior
)

Arguments

trdata

An object of the class treedata from function treeplyr

Y

Vector containing name of column in treedata containing response variable

Y_error

Vector containing name of column in treedata containing error of response variable

reg.column

Vector containing name of regime column in treedata$dat

hl.prior

Vector containing log mu and standard error for half-life prior

vy.prior

Numeric with prior for scale of Vy

optima.prior

Vector containing mu and standard error for optima prior

sigma.prior

Numeric with prior for scale of sigma

Value

dat - list file containing objecs setup for Blouch