For a given number, K, of Clusters of Experimental Units in baseline X-covariate space, ltdagg() calculates the observed distribution of "Local Treatment Differences" (LTDs) of the form LTD = (( mean(Y) for units receiving trtm==1 ) - ( mean(Y) for units receiving trtm==0 )).
ltdagg(K, envir)
An output list of 12 objects, of class ltdagg:
Name of clustering object created by LCcluster().
Name of data.frame containing X, trtm & Y variables.
Name of treatment factor variable.
Name of outcome Y variable.
Number of Clusters Requested.
Number of Clusters delivered.
data.frame with 5 columns and K rows for Clusters.
Cluster ID Factor, "1", "2", ..., "K".
Numerical value of Local Treatment Difference for a Cluster.
Integer value of "weight" = Cluster Size.
Numerical value of within-cluster Local Average Outcome (Y-value).
Numerical value of Propensity Score = Local Fraction of Experimental Units receiving trtm==1; 0.0 <= PS <= 1.0.
data.frame with 5 columns and same number of rows as the data: dframe.
Factor values within c("1", "2", ..., "K").
Observation ID Variable for the rows of the input dframe.
Numerical value of the Y-Outcome for an Experimental Unit.
Numerical value of trtm (0 or 1) for an Experimental Unit.
Numerical value of the LTD for the Cluster containing each Exp. Unit.
Integer value of Number of Informative Clusters.
Integer value of Number of Units within Informative Clusters.
Numerical value of mean(LTDdist$LTD) = Weighted Average of LTDtabl$LTD values.
Numerical value of sqrt(var(LTDdist$LTD)) = Weighted Standard Deviation of LTDtabl$LTD values.
Number of Clusters in baseline X-covariate space.
R environment output by a previous call to LCsetup().
Bob Obenchain <wizbob@att.net>
Multiple calls to ltdagg(K) for varying numbers of clusters, K, are typically made after first invoking LCcluster() to hierarchically cluster patients in X-space and then invoking LCsetup() to specify a Y Outcome variable and a two-level, numerical treatment variable: trtm. ltdagg() computes an observed LTD Distribution, updates information stored in its envir object, and outputs an object that is typically saved in the user's .GlobalEnv to allow subsequent use by print.ltdagg(), plot.ltdagg(), confirm() or KSperm(). Uninformative Clusters (those containing either only trtm==1 units or else only trtm==0 units) contribute NA values to the LTDtabl$LTD and LTDdist$LTD objects within the ltdagg() output list object.
Obenchain RL. (2010) Local Control Approach using JMP. Chapter 7 of Analysis of Observational Health Care Data using SAS, Cary, NC:SAS Press, pages 151-192.
Obenchain RL. (2019) LCstrategy_in_R.pdf http://localcontrolstatistics.org
ivadj
, lrcagg
and LCcompare
.
if (FALSE) {
# Long running example...
data(pci15k)
xvars <- c("stent", "height", "female", "diabetic", "acutemi", "ejfract", "ves1proc")
hclobj <- LCcluster(pci15k, xvars)
LCe <- LCsetup(hclobj, pci15k, thin, surv6mo)
surv050 <- ltdagg(50, LCe)
surv050
plot(surv050, LCe)
}
Run the code above in your browser using DataLab