I hope to use statistical procedure to partition a variable of a panel dataset into cross-sectional variation and time-series variation (within and between variation). Suppose my data looks like:
Y X ID DATE
I hope to know how Y varies cross-sectionally according to ID holding DATE fixed. I also hope to know how Y varies according to DATE time-series, holding ID fixed. My description may not conform to statistical lingo, could you offer me some advice on how to do so? Thank you –
Here is how you request the variance decomposition from the procedure. It gives you the within and between variation for the VC model. You can grab this example and run it in SAS. Also, to get the full output from the procedure, simply delete the line "ods select VarianceComponents". I included it to keep your output as small as possible.