Programming the statistical procedures from SAS

Run panel data

Accepted Solution Solved
Reply
Contributor
Posts: 39
Accepted Solution

Run panel data

[ Edited ]
proc panel data=dairy;
id year farm;
model milk=cows land labor feed/noint ranone;
run;

proc panel data=dairy;
id year farm;
model milk=cows land labor feed/fixone;
run;

The attached document are the result which I got and the expectation which I wanted to get.

The expectation is the document which I  referred to and there are CSs in the exampe.

I think that CSs are fixed effects. But when I ran my program, I found I couldn't get the fixed effects in document, result.

 

Why can't I  see fixed effects when I run the panel data?

Just like "cs"  when I find the code in the SAS example.

 

And I am sure that there are not errors in the log of the program.


Accepted Solutions
Solution
‎01-09-2017 02:25 AM
Super User
Posts: 18,542

Re: Run panel data

Your expectation file shows results from TCSREG not PROC PANEL.

View solution in original post


All Replies
Super User
Posts: 18,542

Re: Run panel data

Please provide more details in your questions. 

 

See here for details on how to ask a good question. 

 

https://communities.sas.com/t5/SAS-Communities-Library/How-to-ask-a-question-in-SAS-Analytics-U-Comm...

 

http://stackoverflow.com/help/how-to-ask

 

 

Contributor
Posts: 39

Re: Run panel data

Thank you for your suggestions.
Solution
‎01-09-2017 02:25 AM
Super User
Posts: 18,542

Re: Run panel data

Your expectation file shows results from TCSREG not PROC PANEL.

Contributor
Posts: 39

Re: Run panel data

Well, thank you for your answer.So, I finished the fixed effects problem. But now I want to get random effect value in every period in the residuals. Where can I find  references?

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 288 views
  • 1 like
  • 2 in conversation