Hi SAS community!
After discussing with you in the recent one month, I gradually feel the beauty of SAS, so I decide to change from using Stata to using SAS. However, I intend to learn the code relating to what I am doing, and I think this is a possible way to do so.
I have used the SAS EG quite a bit, so I have two main questions here:
1. Is there any chasm between SAS EG and SAS, because after a while using the SAS EG, I decide to move to use SAS, for it is better in the long term.
2. Do you know any document taught you to run OLS ( Y = x1 + x2 + x3....) with fixed effect and clustering standard error by using SAS? Because in Stata, we just only use a very easy command like: "xtreg y x1 x2 x3... i.year, fe cluster...." . I tried to google how to run OLS like that but I just received some incomplete guidance. I mean it is said I can use proc syslin to run the OLS, but I don't know how to add the "fixed effects and standard errors clustering" to the regression.
3. Sometimes, I also face the thing that I need to delete some observations containing some specific words for filtering data purpose, I think the reasonable way to do is to use "if... then ...delete", I am not sure if there is any other better way to do with this. Do you have a sample code for this question, say e.g, I want to delete all observation in data have in which the variable "abcd" (a character variable) contains the word "mnpd".
Thank you very much and have a nice weekend!
P/S: Please let me know if I posted it to the wrong place.
... View more