UPSLTDdist | R Documentation |
This function creates a plot displaying the distribution of
Local Treatment Differences (LTDs) as a function of the number of clusters
created for all UPSnnltd objects in the provided environment. The hinges and
whiskers are generated using boxplot.stats
.
UPSLTDdist(envir, legloc = "bottomleft", ...)
envir |
A LocalControlClassic environment containing UPSnnltd objects. |
legloc |
Where to place the legend in the returned plot. Defaults to "bottomleft". |
... |
Arguments passed on to |
Returns the LTD distribution plot.
Adds the "ltdds" object to envir.
data(lindner) cvars <- c("stent","height","female","diabetic","acutemi", "ejecfrac","ves1proc") numClusters <- c(1, 2, 10, 15, 20, 25, 30, 35, 40, 45, 50) results <- LocalControlClassic(data = lindner, clusterVars = cvars, treatmentColName = "abcix", outcomeColName = "cardbill", clusterCounts = numClusters) UPSLTDdist(results,ylim=c(-15000,15000))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.