22E20700 - Research Methods in Accounting, 07.09.2020-30.09.2020
This course space end date is set to 30.09.2020 Search Courses: 22E20700
Ex_2_wage
Here is the second SAS exercise video. Here is the SAS code:
proc import
datafile="C:\Users\jarvah1\Downloads\wage.xlsx"
dbms=xlsx replace out=wage;
run;
proc contents data=wage;
proc print data=wage (obs=15);
run;
/* descriptive statistics */
proc means data=wage mean std q1 median q3;
var wage educ exper female;
run;
* correlations ;
proc corr data=wage nosimple pearson spearman;
var wage educ exper female;
run;
* OLS regression;
* level-level analysis;
proc reg data=wage;
model wage=educ exper female;
run; quit;
ods graphics off;
proc reg data=wage;
model wage=educ exper female / white vif;
run; quit;
* log-level analysis;
ods graphics off;
proc reg data=wage;
model lwage=educ exper female / white;
test educ=exper;
run; quit;