Our data in multivariate (wide) format:
my_data<- data.frame( id=c(1:50), depression1=rnorm(50), anxiety1=rnorm(50), depression2=rnorm(50), anxiety2=rnorm(50), depression3=rnorm(50), anxiety3=rnorm(50) ) my_data
Read more after the jump.
Read more
The function and documentation is listed after the jump.
R-Cookbook.com is a collection of "recipes"--problems, solutions, and working examples--contributed by the R community in order to share code, promote the use of R, and make the learning process more efficient for new users.