simPotData: Simulate pot data for test

Description Usage Arguments Value

View source: R/simPotData.R

Description

Create 'fake' pot data to test models

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
simPotData(
  N = 3,
  np = c(5, 5, 5),
  Y = c(0, 1, 3),
  sigma = c(0.3, 0.3, 0.3),
  sigma_g = c(0.1, 0.1, 0.1),
  time_effect = T,
  p = 2,
  q = 2,
  e = 0.1
)

Arguments

N

number of days in simulation

np

vector of number of pots per group

Y

vector with mean effect for each group

sigma

vector of sd for effect for pots

sigma_g

vector of sd of pot means within groups

time_effect

logical T to include time effect

p

order of auto regressive model - see armaTimeSeries

q

order of auto moving average model - see armaTimeSeries

e

sd of error in arma model - see armaTimeSeries

Value

dt with columns dat, C as pot , G as group, B as block type and Y effect


OlivierGranacher/modelStan documentation built on March 25, 2020, 2:35 a.m.