makeDrm | R Documentation |
MakeDrm: this function reshapes a common field book for germination assays into the form that is required for time-to-event analyses with drm() in the drc package and drmte() in the drcte package. The common field book has one row per each Petri dish and the counts of germinated seeds at each assessment time are listed in different columns.
makeDrm(counts, treat, nViable, moniTimes)
counts |
Dataframe listing the counts of germinated seeds in each Petri dish (rows) at each assessment time (columns). |
treat |
Dataframe listing for each dish the levels of each treatment. It has as many columns as there are treatments in the experiment. |
nViable |
A vector with the number of viable seeds per dish, at the beginning of the assay |
moniTimes |
Vector of monitoring times. It needs to be of the same length as the number of columns in 'counts'. |
This function returns a dataframe
Andrea Onofri
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.