create_data: Create simulated titre data

Description Usage Arguments Value

View source: R/helper.R

Description

Generates simulated observed antibody titre data from the given parameter and exposure table files, along with selected kinetics options.

Usage

1
2
3
4
create_data(runName, runID, parTab_file, exposureTab_file, ngroup = 5,
  nstrain = 5, nindiv = 3, times,
  wd = "~/net/home/ferret/inputs/data_normal", group = NA,
  strain = NA, normal = TRUE, pars = NULL)

Arguments

runName

the simulation name to save data under

runID

run ID to append to the front of the filename

parTab_file

file location of the parameter table to simulate from

exposureTab_file

file location of the exposure table to simulate from

ngroup

how many groups to simulate? Make sure that this matches the dimensions of exposureTab_file

nstrain

how many strains to simulate?

nindiv

how many individuals to simulate data for for each group/strain combination

times

vector of times in days at which titres should be measured

wd

working directory to save simulated data to

group

if only one group to be simulated, subset exposureTab for this group

strain

if only one strain to be simulated, subset exposureTab for this strain

normal

if TRUE, adds normally distributed measurement error

pars

vector of parameter values to simulate from. If NULL, just uses those values in the read in parTab

Value

a list with the simulated data, the residuals between true simulated data and observed simulated data, the file location of saved simulated data


jameshay218/antibodyKinetics documentation built on Nov. 8, 2019, 11 a.m.