powered by
Fits a model using the GR method
GR_est(x, y, I, sec, mat, school, section, rprpair = "hl-disp", verbose = FALSE)
Covariate matrix or data frame.
Response matrix or data frame.
Number of clusters
A vector of subcluster numbers in clusters.
A matrix of numbers of observations in subclusters. Dimension is Ixmax(number ofsubclusters). Each row indicates one cluster.
A vector of clusters, nx1.
A vector of subclusters, nx1.
By default, it uses "hl-disp" in the random prediction procedure (RPP). Also, "med-mad" would be an alternative.
Boolean indicating whether to print out messages from the algorithm.
Fixed effect estimates.
Standard error for the fixed esimates.
Variances of cluster, subcluster, and residual.
Raw error.
Independence error from last weighted step.
Cluster random error.
Subcluster random error.
Epsilon error.
# NOT RUN { # See rlme function # }
Run the code above in your browser using DataLab