Description Usage Arguments Details See Also
toxbootWriteMongo
writes results to a mongo database
1 2 | toxbootWriteMongo(dat, this_m4id, boot_method, replicates, logc_vect,
starttime, concvals, datchemresult, datsample)
|
dat |
A data.table. Required columns are: logc: numeric, contains concentrations resp: numeric, normalized response values paired with concentrations m3id: numeric, value unique to each row corresponding to an individual concentration and response m4id: numeric, value unique to an aeid/spid pair. Multiple m3ids per m4id aeid: numeric, assay id spid: character, sample ID bmad: numeric, baseline mad. Unique to an aeid. |
this_m4id |
numeric length 1, m4id to bootstrap. Choice of m4id will determine which rows are selected, and therefore the values of logc, resp, m3id, aeid, spid, and bmad. |
boot_method |
parameter passed to |
replicates |
number of bootstrap samples. Default 100 |
logc_vect |
vect |
starttime |
time |
concvals |
logical, default is FALSE. If TRUE, dose response samples written to the database as well. |
datchemresult |
data.table |
datsample |
data.table used if concval = T |
The fitted results are assembled
into a json object using jsonlite
and written to the mongoDB.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.