Help using Base SAS procedures

PROC PANEL - Can I specify base cross section and time unit?

Reply
Contributor
Posts: 28

PROC PANEL - Can I specify base cross section and time unit?

I'm wondering if there is any way to specify which cross-sectional or time-series unit is treated as the base observation in calculating the grand mean in PROC PANEL. I'm running SAS 9.4. My data is a simulated dataset with 10 cross sections with 100 observations in each cross section. Here's my code:

 

proc panel data=bys.panel outest=Panel1 printfixed;
id Cross Time;
model y = x1-x4 / fixtwo;
run;

 

When I run this code, SAS assumes that the last cross-sectional unit and last time-series units are the base units when calculating the intercept (grand mean). So the intercept is the sum of the grand mean and the group means of the last units. I would like the first cross-section and time series to be treated as the default so the intercept reflects the grand mean plus the group means of the first groups.

 

Is there a setting I can use to set which groups are treated as a default?

Ask a Question
Discussion stats
  • 0 replies
  • 267 views
  • 0 likes
  • 1 in conversation