I am trying to run mult.icc
to calculate multiple ICC's from a dataset. Data has group ID column, and 9 variables. All variables a numeric. I have run the following:
mult.icc(data[,c("v1", "v2", "v3", "v4", "v5", "v6", "v7", "v8", "v9")],grpid=data$GroupID)
Sourced from https://www.rdocumentation.org/packages/multilevel/versions/2.6/topics/mult.icc
And received error message:
Error in model.frame.default(formula = ~DV + grpid, data = <environment>, :
invalid type (list) for variable 'DV'
I have attached sample data.
Any help would be greatly appreciated.