GetBootstrappedCI: Constructs Confidence Interval for difference in means

Description Arguments Value Author(s)

Description

Receives a dataset with a response column, containing the measure for which the confidence interval will be constructed. The confidence interval will always refer to the difference in means between a treatment gorup and the control group. It is expected for the dataset to contain one measure and group assignment per observation

This function should also receive a character vector that identifies the name of the control group, as well as a vector of strings containing the names of the treatment groups to compare against the control The Name of the column containing the measure for the confidence interval should also be provided

Each bootstrap is performed via the smean.cl.boot on the Hmisc package.

Returns the calculated statistics for each bootstrap iteration as well as the boundaries for the confidence interval

Arguments

dataset

The dataset containing one observation per row

testGroups

A character vector containing the names of the treatement groups

controlGroup

The name which identifies the control group in the dataset

responseColumn

The name of the column that contains the measure to be tested

groupColumn

The name of the column that contains the group identification

bootIterations

The number of bootstrap resamples to perform

bootConfLevel

The confidence level for the interval. Between 1 and 100

parallel

Whether to use parallel package for the bootstrapped estimates. Defaults to TRUE

Value

List containing two dataframes. The first dataframe contains the boundaries of the CI. The second dataframe contains all calculated estimates for the mean of each group

Author(s)

João Monteiro


rvladimiro/dafR documentation built on June 26, 2019, 4:37 a.m.