UPSboxplot | R Documentation |
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.
UPSboxplot(envir, clusterSubset = c())
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. |
Returns the call to boxplot with the formula: "ltd ~ numclst".
Adds the "ltdds" object to the Local Control environment.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.