dodata {CarbUtils}R Documentation

Function to Construct Carbamate data sets for fitting by tcmfn2

Description

Takes as input both aggregated and individual animal data sets, expands any aggregated dataset using PhonyDF(),and combines it with any individual data set.

Usage

dodata(data=NULL, sdata=NULL)

Arguments

data data frame with aggregated data (see Details).
sdata data frame with individual data (see Details).

Details

dodata() sets up a data set for analysis using tcmfn2 and related models from aggregated or individual data sets, or a combination of both. Aggregated data sets must have the following variables:

MRID
MRID for study
CHEACT
AChE activity
SD
Standard deviation of AChE activity
N
Sample Size
DOSE
administered carbamate dose (in mg/kg)
TMPSTDS
Time post-dose, in hours
TMONSTDY
Time on study, in days
SEX
sex of the animal ("F" or "M")

Individual data sets lack the variables SD and N, but may have a variable SUBJECT, if repeated measures is to be explicitly considered for that data set. MRIDs should differ between aggregated and individual data sets.

dodata goes through the following steps when invoked:

  1. sanity check of input variables
  2. expand aggregate data set into a pseudo-individual data set to be used with nlme or gnls, and combine data and sdata into a single analysis dataset.
  3. return combined data set

Value

Combined data set with variables:

comp1 Description of 'comp1'
comp2 Description of 'comp2'

...

Author(s)

R. Woodrow Setzer


[Package CarbUtils version 1.0 Index]