Description Usage Arguments Details Value See Also Examples
Given data from one arm of a repeated measures clinical trial with binary outcomes, produces estimates of the expected value of the outcome at the final time-point for a range of sensitivity parameters.
1 2 3 |
data |
a dataframe in wide fromat with a column indicating treatment group and columns of outcome measures in time order. |
trtname |
The name of the treatment column in data. |
trtlev |
The levels that the treatment name takes. |
rf.ntree |
Number of trees to pass to the rfsrc function. |
rf.seed |
Seed to pass to rfsrc function. |
rf.sampsize |
Size of sample passed to rfsrc. |
rf.nodesize |
Minimum nodesize passed to rfsrc. |
nbootstraps |
Number of bootstraps to perform. |
alphas |
A vector of sensitivity parameters. |
The dataframe data is split into the two treatments arms using the column trtname. The remaining columns are coded as 0 or 1 for the binary outcome and should be in time order. Unobserved values are coded as NA.
Using the randomForestSRC package is used to estimate the joint distribution of the outcome values (including the non-observed outcome values). The sensitivity parameters are then used to tilt the outcome values to produce the underlying joint distribution of the underlying observed outcomes.
salbm returns a list which includes the following:
Results1 |
the results from treatment 1. |
Results2 |
the results from treatment 2. |
ResultsD |
the results from treatment 2 minus treatment 1. |
bootstraps1 |
Bootstrap results from treatment 1 |
bootstraps2 |
Bootstrap results from treatment 2 |
bootstrapsD |
Bootstrap results from treatment 2 minus treatment 1 |
The salbm_userDoc.pdf file in the Examples subdirectory.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.