Description Usage Arguments Details Value See Also Examples
For a list of dataframes, where each frame is of the form (Y_1,Y_2, ..., Y_K) and Y_t takes the values 0, 1, or 2 (missing), salbm estimates E[ Y_t | alpha ] where alpha is one of a number of sensitivity paramaters.
1 2 3 4 |
data |
a list of dataframes |
Narm |
the number of dataframes to process |
K |
the number of time-points |
ntree |
the number of trees in the random forest passed to randomForestSRC |
seeds |
vector of positive numbers used as seeds in producing bootstrap samples. There should be at least one seed for each treatment arm. |
seeds2 |
vector of negative numbers passed to randomForestSRC. There should be at least one seed for each treatment arm. |
alphas |
vector of sensitivity parameters |
NBootstraps |
number of bootstrap samples to be created and analyzed |
bBS |
Start bootstrap number. Bootstrap ids are given as bBS:eBS where eBS = bBS + NBootstraps - 1. Setting bBS to a value other than 1 is useful when running salbm in parallel. |
returnJP |
Logical indicating if the joint probability distribution for each treatment group should be returned. This can be used by addSamples to create Bootstrap samples. |
returnSamples |
Logical indicating if generated bootstrap samples should be returned |
The list data contains Narm dataframes each of which has the form (Y_1,Y_2, ..., Y_K) where each Y_t takes the value 0 or 1 when Y_t is observed and has value 0 or 1 respectively and Y_t takes the value NA (or 2) when Y_t is not observed.
For each dataframe separately, randomForestSRC is used to create the joint probability distribution f(Y_1,Y_2, ..., Y_K) where Y_t can take three possible values, 0, 1, or missing (represented by the value 2).
This joint distributins is "tilted" once for each sensitivity parameter alpha to produce the fully observed joint distribution, t(Y_1,Y_2, .... Y_K | alpha ).
Statistics such as E[ Y_K | Y_K is fully observed, alpha ] can then be computed.
Precision estimates are calculated using the bootstrap with bootstraps generated from f(Y_1,Y_2, ..., Y_K).
Even for quite modest values of K the number of possible combinations of {Y_i} can be large and the representation in memory of the joint distribution function, f, can be problematic. For larger sized values of K it might be worth considering placing a Markovian assumption on the distributions of f(Y_j) and this can be analysed using salbmM.
salbm returns a list which contains the following:
Main1R |
results for treatment group 1 in wide format |
Main1RL |
results for treatment group 1 in long format |
Main1wts |
means and standard deviations for trt1 |
jps1 |
joint distribution returned from randomForestRSC, trt 1 |
Samp1R |
results for bootstrap samples trt1 in wide format |
Samp1RL |
results for bootstrap samples trt1 in long format |
Samp1wts |
means and standard deviations of bootstrap samples trt1. |
Main2R |
results for treatment group 2 in wide format |
Main2RL |
results for treatment group 2 in long format |
Main2wts |
means and standard deviations for trt2 |
jps2 |
joint distribution returned from randomForestRSC trt 2 |
Samp2R |
results for bootstrap samples trt2 in wide format |
Samp2RL |
results for bootstrap samples trt2 in long format |
Samp2wts |
means and standard deviations of bootstrap samples trt2. |
data |
the salbm data object supplied in the call to salbm |
K |
the value of K supplied in the call to salbm |
ntree |
the value of ntree supplied in the call to salbm |
alphas |
the value of alphas supplied in the call to salbm |
seeds |
the value of seeds supplied in the call to salbm |
seeds2 |
the value of seeds2 supplied in the call to salbm |
bBS |
the value of bBS supplied in the call to salbm |
eBS |
the value of eBS supplied in the call to salbm |
NBootstraps |
the value of NBootstraps supplied in the call to salbm |
salbmM, addSamples.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.