Description Usage Arguments Value Examples
Given regression model
and clustering
, this function calculates the OLS residuals
under the linear null hypothesis, and assigns them to the specified clusters.
1 | get_clustered_eps(model, clustering)
|
model |
A regression |
clustering |
A |
A List
of the restricted residuals clustered according to clustering
.
1 2 3 4 5 | m = example_model(n=100)
cl = list(1:50, 51:100)
er = get_clustered_eps(m, cl)
stopifnot(length(er) == length(cl))
stopifnot(length(er[[1]]) == 50)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.