BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
knjohns0
Calcite | Level 5

Can anyone please help me with the understanding  and the use  of proc arima data= SASHELP.HEART;. What is it used/purpose for and its feature. 

 

Thanks, 

 

Kiera 

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

@knjohns0 wrote:

I am thinking Linear, since I am looking for a cause and effect. So, my study is based on the effects smoking has on cholesterol if any.


This should get you started and finished. It's more than you need, but a good example of looking at the data and doing an exploratory data analysis. There are missing data - I haven't attempted to account for that in any manner, just exploratory. Good Luck. 

 

 

ods graphics on;
title 'Exploratory Data Analysis';
title2 'Check Distributions';
proc freq data=sashelp.heart;
table chol_status smoking_status / missing;
table smoking cholesterol / missing;
run;

title2 'Ensure missing is consistent across variables';;

proc freq data =sashelp.heart;
table cholesterol*chol_status / missing;
table smoking*smoking_status / missing;
run;


title2 'Check distributions';
proc univariate data=sashelp.heart plots;
histogram smoking cholesterol;
var smoking cholesterol;
run;

title2 'Check distributions by status levels';
proc univariate data=sashelp.heart plots;
class chol_status;
var smoking ;
run;

title2 'Check distributions by status levels';
proc univariate data=sashelp.heart plots;
class smoking_status;
var cholesterol ;
run;


title2 'ANOVA comparisons and statistics';
proc anova data=sashelp.heart plots(maxpoints=10000);
class smoking_status; 
model cholesterol = smoking_status;
run;

title2 'Chi Square tests - status only';
proc freq data=sashelp.heart ;
table chol_status * smoking_status/ missing chisq;
run;

title2 'Regression modelling with continuous variables';
proc reg data=sashelp.heart plots(maxpoints=10000);
model cholesterol = smoking;
run;quit;

View solution in original post

6 REPLIES 6
Cynthia_sas
SAS Super FREQ

Hi:

  It would be more useful if you could explain what it is you want/need to know.

 

  If you don't understand the purpose of PROC ARIMA or how to use it, here's the documentation site: https://support.sas.com/documentation/onlinedoc/ets/151/arima.pdf and here's a clip from the Overview in that document:

ov_arima.png

 

  If you need more information about SASHELP.HEART, look it up here: https://support.sas.com/documentation/tools/sashelpug.pdf .

 

Cynthia

knjohns0
Calcite | Level 5

I am Analyzing Framingham Heart Data, the correlation between smoking and cholesterol data. 

Reeza
Super User
Arima is for time series analysis, first decide on your method of analysis, ie linear regression, logistic regression and then we can help you with the coding part. Coding is relatively easy, figuring out what to code is hard.
knjohns0
Calcite | Level 5

I am thinking Linear, since I am looking for a cause and effect. So, my study is based on the effects smoking has on cholesterol if any.

Reeza
Super User

@knjohns0 wrote:

I am thinking Linear, since I am looking for a cause and effect. So, my study is based on the effects smoking has on cholesterol if any.


This should get you started and finished. It's more than you need, but a good example of looking at the data and doing an exploratory data analysis. There are missing data - I haven't attempted to account for that in any manner, just exploratory. Good Luck. 

 

 

ods graphics on;
title 'Exploratory Data Analysis';
title2 'Check Distributions';
proc freq data=sashelp.heart;
table chol_status smoking_status / missing;
table smoking cholesterol / missing;
run;

title2 'Ensure missing is consistent across variables';;

proc freq data =sashelp.heart;
table cholesterol*chol_status / missing;
table smoking*smoking_status / missing;
run;


title2 'Check distributions';
proc univariate data=sashelp.heart plots;
histogram smoking cholesterol;
var smoking cholesterol;
run;

title2 'Check distributions by status levels';
proc univariate data=sashelp.heart plots;
class chol_status;
var smoking ;
run;

title2 'Check distributions by status levels';
proc univariate data=sashelp.heart plots;
class smoking_status;
var cholesterol ;
run;


title2 'ANOVA comparisons and statistics';
proc anova data=sashelp.heart plots(maxpoints=10000);
class smoking_status; 
model cholesterol = smoking_status;
run;

title2 'Chi Square tests - status only';
proc freq data=sashelp.heart ;
table chol_status * smoking_status/ missing chisq;
run;

title2 'Regression modelling with continuous variables';
proc reg data=sashelp.heart plots(maxpoints=10000);
model cholesterol = smoking;
run;quit;
knjohns0
Calcite | Level 5

Thanks, for your help.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 6 replies
  • 1467 views
  • 0 likes
  • 3 in conversation