UPSboxplot: Returns a series of boxplots comparing LTD distributions...

Description Usage Arguments Value Examples

Description

Given the output of LocalControlClassic, this function uses all or some of the UPSnnltd objects contained to create a series of boxplots of the local treatment difference at each of the different numbers of requested clusters.

Usage

1
UPSboxplot(envir, clusterSubset = c())

Arguments

envir

A LocalControlClassic environment containing UPSnnltd objects.

clusterSubset

(optional) A vector containing requested cluster counts. If provided, the boxplot is created using only the UPSnnltd objects corresponding to the requested cluster counts.

Value

Returns the call to boxplot with the formula: "ltd ~ numclst".

Adds the "ltdds" object to the Local Control environment.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
data(lindner)
cvars <- c("stent","height","female","diabetic","acutemi",
           "ejecfrac","ves1proc")
numClusters <- c(1, 5, 10, 20, 40, 50)

results <- LocalControlClassic(data = lindner,
                               clusterVars = cvars,
                               treatmentColName = "abcix",
                               outcomeColName = "cardbill",
                               clusterCounts = numClusters)

bxp <- UPSboxplot(results)

OHDSI/LocalControl documentation built on July 13, 2018, 3:21 p.m.