summary.tm {tmsens} | R Documentation |
Summarizing Trimmed Means Linear Model fits:
Description
summary
method for class "tm
".
Usage
## S3 method for class 'tm'
summary(object, ...)
Arguments
object |
an object of class " |
... |
user specified arguments |
Value
summary.tm
returns an list of summary statistics of the fitted trimmed means linear
model in object
, with components
call |
the matched call |
n |
the number of observations per treatment group |
dropout |
the proportion of dropout per treatment group |
trimfrac |
the proportion of data that was trimmed away per treatment group |
trimside |
specifies if lower or higher value trimming was performed |
n_after_trimming |
the number of observations per treatment group after trimming |
coefficients |
an array of coefficients with corresponding p-values and 95% confidence intervals |
Analysis_details |
reiterates trimming fraction and side, and, for |
SD_outcome |
an array of the standard deviation per treatment group, for the observed outcomes and for the trimmed outcomes |
See Also
tm
. The function coef
extracts the array of regression coefficients with corresponding p-values and 95% confidence intervals.
Examples
set.seed(123456)
test_dat <- as.data.frame(cbind(c(rep(0,500),rep(1,500)),
c(sort(rnorm(500,0,1)),sort(rnorm(500,1,1.5))),
rbinom(1000,2,0.4), rnorm(1000,0,1)))
colnames(test_dat) <- c("TR", "Y", "U", "U2")
test_dat$Y[1:200] <- NA
tm_obj <- tm(formula= Y ~ TR + U + U2, GR = "TR", trF = 0.5,
side = "LOW", n_perm = 1000, adj_est = TRUE, data = test_dat)
summary(tm_obj)
coef(tm_obj)