powered by
Calculates the ICC for the idiosyncratic, within, and between variation. Calculates the ICC for total variation and for within variation.
ICC(y,timevar,csvar,df)
is the name of the response vector provided as a character string.
is a character string providing the name of the time indicator variable.
is a character string providing the name of the cross-section indicator variable.
is a dataframe containing y, timevar, and csvar
Returns the ICC results in a list.
is the matrix of ICCs and variance components for each level of variation.
is the matrix of ICCs and variance components only examining the within variation.
%% ~Describe the value returned %% If it is a LIST, use %% \item{comp1 }{Description of 'comp1'} %% \item{comp2 }{Description of 'comp2'} %% ...
Calculates ICC foreach level of variation.
# NOT RUN { library(plm) library(lme4) ##not run data("Crime") ICC("lcrmrte",csvar="county", timevar="year",Crime) # }
Run the code above in your browser using DataLab