Skip to content

Commit

Permalink
Merge pull request #73 from stat697/week7
Browse files Browse the repository at this point in the history
Update STAT697-01_s19-team-3_data_analysis_by_MG.sas
  • Loading branch information
mgao10-stat697 authored Mar 9, 2019
2 parents dc12b31 + b0a66e1 commit 95cd220
Showing 1 changed file with 37 additions and 10 deletions.
47 changes: 37 additions & 10 deletions STAT697-01_s19-team-3_data_analysis_by_MG.sas
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,24 @@ Followup Steps: Clear out any missing value.
* output first five row of resulting sorted data to better visualize the results;

proc sort
data=country_analytic_file_raw (obs=5);
by descending adjusted_life_index;
data=country_analytic_file_raw (obs=5)
out = country_analystic_file_raw_Q1;
;
by
descending adjusted_life_index;
run;

proc print;
proc report data=country_analystic_file_raw_Q1;
columns
Country
adjusted_life_index
;
run;

* clear titles/footnotes;
title;
footnote;

*******************************************************************************;
* Research Question Analysis Starting Point;
*******************************************************************************;
Expand Down Expand Up @@ -83,21 +94,28 @@ strong correleation between the two variables.;
variable;

proc sgplot
data=country_analytic_file_raw;
scatter x=Year_School_Female y=Estimated_gross_national_income_;
data=country_analytic_file_raw;
scatter x=Year_School_Female y=Estimated_gross_national_income_;
run;

data new; set country_analytic_file_raw;
numeric_var = input(Year_School_Female, best5.);

numeric_var = input(Year_School_Female, best5.);

where

numeric_var = input(Year_School_Female, best5.);

where

not(missing(Year_School_Female))
;
run;


data work; set country_analytic_file_raw;
Year_School_Female2 = input(Year_School_Female, best7.);
Estimated_income_fe = input(Estimated_gross_national_income_, best7.);
Year_School_Female2 = input(Year_School_Female, best7.);
Estimated_income_fe = input(Estimated_gross_national_income_, best7.);
run;

proc corr
Expand All @@ -116,6 +134,9 @@ run;
;
run;

* clear titles/footnotes;
title;
footnote;

*******************************************************************************;
* Research Question Analysis Starting Point;
Expand Down Expand Up @@ -149,9 +170,15 @@ Followup Steps: To make a boxplot of the data to see the distribution of data
* To sort the data in descending order to find the max value;

proc sort
data=country_analytic_file_raw;
by descending Population_in_severe_multidimens;
data=country_analytic_file_raw
;
by
descending Population_in_severe_multidimens;
run;

proc print;
run;

* clear titles/footnotes;
title;
footnote;

0 comments on commit 95cd220

Please sign in to comment.