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_3_mroz
Here is the third SAS exercise video. Here is the SAS code:
proc import datafile="C:\Users\jarvah1\Downloads\mroz.xlsx"
dbms=xlsx out=mroz;
run;
proc contents;
proc print data=mroz (obs=15);
run;
/* descriptive statistics*/
proc means n mean median data=mroz;
var inlf nwifeinc educ exper expersq age kidslt6 kidsge6;
run;
* OLS;
ods graphics off;
proc reg data=mroz;
model inlf=;
run;
ods graphics off;
proc reg data=mroz;
model inlf=nwifeinc educ exper expersq age kidslt6 kidsge6;
output out=mroz_out predicted=pred residual=res;
run;
proc print data=mroz_out (obs=50);
var inlf pred res;
run;
* logistic regression;
proc logistic data=mroz;
model inlf(EVENT="1")=;
run;
proc logistic data=mroz;
model inlf(EVENT="1")=nwifeinc educ exper expersq age kidslt6 kidsge6;
ods output parameterestimates=parms;
run;
proc export data=parms
outfile="C:\Users\jarvah1\Downloads\parms.xlsx"
dbms=xlsx;
run;