tidy.summclust {summclust} | R Documentation |
Obtain results from a summclust
object in a tidy data frame.
## S3 method for class 'summclust'
tidy(x, ...)
x |
An object of class 'summclust' |
... |
Other arguments |
A data.frame containing coefficient estimates, t-statistics, standard errors, p-value, and confidence intervals based on CRV3 variance-covariance matrix and t(G-1) distribution
MacKinnon, James G., Morten Ørregaard Nielsen, and Matthew D. Webb. "Leverage, influence, and the jackknife in clustered regression models: Reliable inference using summclust." arXiv preprint arXiv:2205.03288 (2022).
library(summclust)
data(mtcars)
mtcars
fit <- lm(mpg ~ cyl + disp + hp, data = mtcars)
summ <- summclust(fit, params = ~cyl + disp, cluster = ~carb)
summary(summ)
tidy(summ)
plot(summ)