Description Usage Arguments Details Value
Generates a spline model given dose and target response columns.
1 2 3 4 5 6 7 |
dosecolumn |
Name of dose column of interest in dataframe. |
targetcolumn |
Name of response column of interest in dataframe. |
k |
Dimension of the basis used to represent the smooth term; see Details. |
return_predict |
If TRUE (default FALSE), returns dataframe of predicted values. |
write_predict |
If TRUE (the default), writes the dataframe of predicted values to a .csv file in the working directory. |
STD_bias |
If TRUE (the default), calculates the slope transition dose, a bootstrapped and resource-intensive computation. |
data |
Input dataframe. |
This function generates a spline model with the input dose and target response columns, plots the spline-estimated dose-response function with its upper and lower 95 percent confidence bounds in green and red respectively along with the actual data, and returns key metrics related to the dose-response function. Note that the confidence bounds depicted on the plot are for the dose-response function itself, and not for the raw data.
The parameter 'k', defaulted to 4, defines the number of dimensions the spline function will use in estimating the response relation. With 2 reserved for each end of the smooth, the default allows for 2 bends in the smooth. In the case that this appears to overfit the data, the user may choose to override the default to 3, which would allow only one bend.
A plot of the spline-estimated dose-response function along with the actual data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.