Convert Data from Univariate Setup to Multivariate Setup



Long Format Wide FormatWhen working with repeated measures, the data can be in long format (aka univariate setup) or in wide format (aka multivariate setup). The former was more popular long ago, the latter more recently. Some procedures in statistical package require the data to be in long format, others in wide format. Accordingly, it may be important to be able to convert from one to the other.Consider research where the intensity/duration of migraine headaches was measured across five weeks, including two weeks of baseline measurement and three after initiation of an intervention.? The data for two subjects are shown here in long (aka "univariate") format:data headache; input subject week duration; cards;1 1 211 2 221 3 8 1 4 6 1 5 6 2 1 202 2 192 3 102 4 4 2 5 4 And here in wide (aka "multivariate" format)How to convert from one to the other? Check out these links:HYPERLINK ""Convert Data from Univariate Setup to Multivariate Setup SASConvert Data from Multivariate Setup to Univariate Setup SASLong to Wide, SASWide to Long, SASWide to Long, SAS, Proc TransposeLong to Wide, SPSSWide to Long, SPSSRestructure Data in SPSSKarl L. Wuensch, March, 2019 ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download