simulateNull {BIGL} | R Documentation |
Simulate data from a given null model and monotherapy coefficients
Description
Simulate data from a given null model and monotherapy coefficients
Usage
simulateNull(
data,
fitResult,
doseGrid,
transforms = fitResult$transforms,
startvalues,
null_model = c("loewe", "hsa", "bliss", "loewe2"),
...
)
Arguments
data |
Dose-response dataframe. |
fitResult |
Monotherapy (on-axis) model fit, e.g. produced by
|
doseGrid |
A grid of dose combinations |
transforms |
Transformation functions. If non-null, |
startvalues |
Starting values for the non-linear equation, from the observed data |
null_model |
Specified null model for the expected response surface.
Currently, allowed options are |
... |
Further parameters that will be passed to
|
Value
List with data
element containing simulated data and
fitResult
element containing marginal fit on the simulated data.
Examples
data <- subset(directAntivirals, experiment == 1)
## Data must contain d1, d2 and effect columns
fitResult <- fitMarginals(data)
simDat <- simulateNull(data, fitResult, expand.grid(d1 = data$d1, d2 = data$d2),
null_model = "hsa")