This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: r /*solution to Q3*/ / *a; *Imports the Excel file; PROC IMPORT OUT= FieldGoal DATAFILE= "K:\6360\Assignments\Assignment2\FG_data.xls" DBMS=EXCEL2000 REPLACE; GETNAMES=YES; RUN; R *SAS did not import the data set perfectly! *The stadium variable had a LABEL created called stadium; *The actual name of the variable in the data set was _stadium; data FieldGoal; set FieldGoal; stadium = _stadium; drop _stadium; run; r *Print the above dataset ; proc print data=FieldGoal (obs=10); run; r *b; proc freq data=FieldGoal ; tables Success*Surface / fisher out=out_Set1; run; r proc print data=out_Set1; run; r *c; proc freq data=FieldGoal; tables Success*stadium / chisq norow nocol nopercent cellchi2; output out=out_Set2 chisq; run; r proc print data=out_Set2; run;...
View Full Document
This note was uploaded on 06/06/2011 for the course STAT 4360 taught by Professor Park during the Spring '11 term at University of Georgia Athens.
- Spring '11