samonSummaryIM: Summary function for an object returned by the samonIM...

View source: R/samonSummaryIM.R

samonSummaryIMR Documentation

Summary function for an object returned by the samonIM function

Description

Produces summaries of samonIM objects, combining multiple imputed results to produce confidence intervals

Usage

samonSummaryIM( trt, CIlevel = 0.95 )

Arguments

trt

the result from a call to samonIM or samonCombineIM

CIlevel

the confidence level for confidence intervals

Details

Combines multiple imputation estimates and multiple imputation bootstrap estimates to produce summary estimates and confidence intervals for a samonIM object.

Value

Returns a list. Items include TM which contains treatment estimates and multiple imputation standard errors for the main data; TS contains bootstrap estimates and multiple imputation standard error bootstrap estimates. CI contains confidence intervals.

Examples

# V1Results and V2Results are the returned objects from the
# samonIM function associated with VAS treatment 1 and 2 respectively.
data("V1Results")
data("V2Results")

# summarize each arm, their difference and their cross difference.
VSummary1 <- samonSummaryIM(V1Results)
VSummary2 <- samonSummaryIM(V2Results)
VSummaryD <- samonDifferenceSummaryIM(VSummary1,VSummary2)
VSummaryX <- samonCrossSummaryIM(VSummary1,VSummary2)

samon documentation built on Oct. 26, 2023, 9:06 a.m.

Related to samonSummaryIM in samon...