makeDrm2 | R Documentation |
This function reshapes a datasets organised as necessary for nonlinear regression into the kind of dataset required by the drmte() function in the 'drcte' package. It works with either the counts of germinated seeds at each monitoring time or the cumulative counts at each monitoring time.
makeDrm2(counts, treat, nViable, moniTimes, Dish, cumulative = T)
counts |
Vector listing the counts of germinated seeds in each Petri dish at each assessment time. |
treat |
Dataframe listing, for each row of data, the corresponding level of experimental factors (one factor per column) |
nViable |
A vector listing the number of viable seeds, at the beginning of the assay. This number is the same for all observations belonging to the same dish. |
moniTimes |
Vector of monitoring times. |
Dish |
Vector of codes for dishes. |
cumulative |
Logical: True if counts are cumulative, False if they are not. |
Returns a dataframe
Andrea Onofri
# makeDrm2 (deprecated, example not run) # data(lotusCum) # moniTime <- lotusCum$Time # count <- lotusCum$nCum # nViable <- rep(25, length(lotusCum[,1])) # Dish <- as.factor(lotusCum$Dish) # treatGroups <- lotusCum[,1] # dataset_sd <- makeDrm2(count, treatGroups, nViable, moniTime, Dish) # head(dataset_sd) # count <- lotusCum$nSeeds # dataset_sd <- makeDrm2(count, treatGroups, nViable, moniTime, Dish, # cumulative = FALSE) # head(dataset_sd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.