This is reshaping the data frame from wide to long form. In particular, MULTDV is as.vector(t(dvs)). Try typing this on a line by itself:
make.univ to see the code and clarify your understanding. Also try the examples in ?reshape to familiarize yourself with wide to long transformations. On Mon, Jan 18, 2010 at 12:06 AM, 孟欣 <lm_meng...@163.com> wrote: > Hello all: > I've read the document named "A Brief Introduction to R, the multilevel > package and the nlme package". > At p68, one can transform the dataset to the required format by using > "make.univ". > I wanna know,how the new variable "MULTDV" is calculated(can you show me the > formula if possible please?)?And what's the usage of this new variable in the > following analysis? > > > Thanks a lot! > > My best. > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.