toxpiR-datasets | R Documentation |
Objects included in the toxpiR package, loaded with utils::data
data(txp_example_input, package = "toxpiR")
data(txp_example_model, package = "toxpiR")
Small example input data to be used with txpCalculateScores in creating TxpResult objects. A base::data.frame with 10 rows and 9 variables
Observation names
Input data for ToxPi models
Example TxpModel object intended for txp_example_data
; model with 4
slices.
https://github.com/ToxPi/ToxPi-example-files
data(txp_example_input, package = "toxpiR")
data(txp_example_model, package = "toxpiR")
txp_example_input
txp_example_model
## Code to create txp_example_model
tf1 <- TxpTransFuncList(linear = function(x) x)
sl <- TxpSliceList(s1 = TxpSlice(sprintf("metric%d", 1:2)),
s2 = TxpSlice("metric3"),
s3 = TxpSlice(sprintf("metric%d", 4:7),
tf1[rep("linear", 4)]),
s4 = TxpSlice("metric8", tf1))
tf2 <- TxpTransFuncList(NULL, linear = function(x) x, NULL, NULL)
TxpModel(txpSlices = sl, txpWeights = c(2, 1, 3, 2), txpTransFuncs = tf2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.