Description Usage Arguments Details Value Examples
This function expands summarized dichotomous data for input into drsmooth.
1 2 3 4 5 |
dosecolumn |
Character string, name of dose column to be tested. |
targetcolumn |
Character string, name of response column to be tested. |
ncolumn |
Character string, name of N column of total cases per dose. |
data |
Input dataframe. |
outputfilename |
Character string, name of .csv file to be written out. |
The input data frame to this function is expected to contain a numerical dose column, identified as 'dosecolumn,' a numerical outcome count column, identified as 'targetcolumn,' and a numerical N column with the total number of cases tested in the dose group, identified as 'ncolumn.' See drsmooth included data DIdata for an example. This function takes such a summarized dataframe and returns an expanded case-by-case replicate df, which is suitable as an input to the drsmooth function, with data_type = "dichotomous". If an outputfilename is provided, the resulting df is also written to the working directory.
A dataframe is returned containing one row for each case in each dose. If an outputfilename is provided, the df is also written out in a .csv file. An expanded dataframe or file such as this one is appropriate as input to the drsmooth function when data_type = "dichotomous".
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.