Learn R Programming

simdistr (version 1.0.1)

example_trials: Data of baseline variables of seven randomised trials.

Description

A dataset containing baseline variables' data from seven randomised trials authored by Yuhji Saitoh and tested by Carlisle JB and Loadsman JA (Anaesthesia 2017; Appendix S2 references number 1, 2, 4, 5, 7, 9 and 14). Results obtained with this example can be compared with results in the Table 1 of Carlisle JB and Loadsman JA. Small differences are to be expected, as p-values are obtained by means of simulations. For the sake of a faster testing, the example sets the number of simulations at 100. However, we recommend at least 5000 simulations to be performed in order to obtain more accurate results.

Usage

data(example_trials)

Arguments

Format

A data frame with 93 rows and 9 variables:

  1. trial - trial identification number;

  2. variable - variable identification number;

  3. group - group of participants identification number;

  4. participants - number of participants;

  5. mean - reported mean or proportion;

  6. sd - reported standard-deviation (for continuous variables only);

  7. decimals - number of decimal places to which the corresponding mean or proportion was reported;

  8. type - type of variable. 1 indicates a continuous variable; 2 indicates a categorical variable;

  9. name - name of the randomised trial (first author name and publication year) to which data concern.

Examples

Run this code
# NOT RUN {
sim_distr(100,example_trials,TRUE)

# }

Run the code above in your browser using DataLab