Quartz | Level 8

## SAS interpretations

I am unsure if I am allowed to ask this question on this forum but ever since I discovered the SAS community I have increased my grades in grad school through the feedback provided on this forum. I was wondering if the people on this forum know of a place (maybe within this site) where I can ask questions on how to interpret my results from SAS. My biostatistics professor does not respond to students questions and everything is very much up to the student. I am able to obtain results such as:

`data poolsize;set newprices;poolsize = pool*(size-2200);run;proc reg data=poolsize;model price = poolsize pool/CLB;run;`

And although I was able to obtain this data through SAS I wanted to know if I am allowed to ask if my interpretation (below) is correct when analyzing my results. Maybe there is a different forum for this. Any direction would help. Mainly would like to talk about my results obtained through SAS.

1. Consider the model below:

PRICE = β0 +β1 POOL +β2(SIZE −2200)+β3 POOL(SIZE −2200)+ε

UPDATED RESULTS AND TABLE:

1 ACCEPTED SOLUTION

Accepted Solutions
SAS Super FREQ

## Re: SAS interpretations

Hello,

( I think ) you can ask about interpretation of SAS output. Why not?

This forum is there to help (whatever SAS help).

It is also good you are mentioning that you are a student. Most members will provide students with "anchors", but not the ready-made solution (we don't do your homework). In the long run, this will help you best.

PRICE ββPOOL β2(SIZE −2200) + βPOOL(SIZE −2200)+ε

This is not the model you have fit.

You haven't calculated (SIZE −2200) and you have not asked for β2.

Also, we need some info about the inputs.
Is pool a binary indicator on pool presence (1 if YES, 0 if NO)?

Thanks,

Koen

13 REPLIES 13
SAS Super FREQ

## Re: SAS interpretations

Hello,

( I think ) you can ask about interpretation of SAS output. Why not?

This forum is there to help (whatever SAS help).

It is also good you are mentioning that you are a student. Most members will provide students with "anchors", but not the ready-made solution (we don't do your homework). In the long run, this will help you best.

PRICE ββPOOL β2(SIZE −2200) + βPOOL(SIZE −2200)+ε

This is not the model you have fit.

You haven't calculated (SIZE −2200) and you have not asked for β2.

Also, we need some info about the inputs.
Is pool a binary indicator on pool presence (1 if YES, 0 if NO)?

Thanks,

Koen

Quartz | Level 8

## Re: SAS interpretations

First of all thank you so much for responding. I was not expecting a response so quickly. Pool is a binary variable
Quartz | Level 8

## Re: SAS interpretations

This was my code:
data poolsize;
set newprices;
poolsize = pool*(size-2200);
run;

proc reg data=poolsize;
model price = poolsize pool/CLB;
run;
SAS Super FREQ

## Re: SAS interpretations

Hello,

If you want to fit this model :

PRICE β+βPOOL +β2(SIZE −2200)+βPOOL(SIZE −2200)+ε

I think this code is closer to what you want :

``````data poolsize;
set newprices;
sizeMinus = size-2200;
poolsize  = pool * sizeMinus;
run;

proc reg data=poolsize;
model price = pool sizeMinus poolsize / CLB;
run; ``````

Koen

Quartz | Level 8

## Re: SAS interpretations

Hi Koen,
Thank you for your code! I was able to update my question with my current interpretation and the results from the code provided. Just was wondering if my interpretation is ok
SAS Super FREQ

## Re: SAS interpretations

Hello,

The interpretation was more or less OK, but why are you putting Model Parameter and Point Estimate on one line?

The Point Estimate is just ANOTHER Model Parameter.

All three (model) parameters (beta 1|2|3) have a point estimate and an interval estimate.

If you doubt about interpretation, just set up a SCORE test as below, and play with the inputs:

``````data have;
pool=1; size=2301; output;
pool=0; size=2700; output;
pool=0; size=1950; output;
run;

data want;
set have;
beta0 = 165665;
beta1 = -6527.47441;
beta2 = 103.05342;
beta3 = -16.80690;
PRICE = beta0 + beta1*POOL + beta2*(SIZE −2200) + beta3*POOL*(SIZE −2200);
run;
/* end of program */``````

Koen

Quartz | Level 8

## Re: SAS interpretations

I was given the tables by my porfessor which made us list everything on one line but the way you broke it down makes a lot of sense and I was able to edit some of the other model questions. I was wondering if I can tweak my proc reg code to add a regression line relating the price and size of houses that have pools and overlay it for houses that do not have pools?
SAS Super FREQ

## Re: SAS interpretations

Of course,

do something like :

``````proc sgplot data=MyLib.MyDataSet;
reg y=price x=sizeMinus / degree=1 group=pool
markerattrs=(size=3px) name='a';
keylegend 'a' / location=inside position=topright across=1;
run;``````

Take care --> no interaction effect in above code !

#### Multiple Fit Functions Using PROC SGPLOThttps://go.documentation.sas.com/doc/en/statug/15.2/statug_odsgraph_sect081.htm

You can get rid of the degree 1 spline and do a real linear regression as well.
Look at the REG statement in PROC SGPLOT documentation!

[EDIT] : you can also make a series plot with group=pool , using PROC SGPLOT.
Do this on the scored dataset (dataset with predictions).
That way, you do not make another model with PROC SGPLOT !

Koen

Quartz | Level 8

## Re: SAS interpretations

Actually I believe this code I came up with from previous lectures works as well! Thanks Koen!
proc sgplot data=poolsize;
reg x = size2200 y=price/group=pool;
run;
I'm basically done with this assignment and was asked to determine the model parameter and interpretation for the following code:
proc glm data=example;
class eyecolor (ref=’1’)/param=ref;
model response = eyecolor; run;

When I run it on SAS nothing happens so i'm assuming its more of a rhetorical question?
Quartz | Level 8

## Re: SAS interpretations

Thanks for all your help, I genuinely feel your breakdown has helped me understand regressions models.
SAS Super FREQ

## Re: SAS interpretations

You are welcome.

With regard to that other code :

``````proc glm data=example;
class eyecolor (ref='1') / param=ref;
model response = eyecolor;
run;``````

You should at least see a message in the LOG as to why results are not produced!

GLM = General Linear Model.

Your input is categorical (with 2+ eye color values). You apply reference coding to your input (and '1' is the reference level).

This is an ANOVA analysis (one-way ANOVA) !

Koen

Quartz | Level 8

## Re: SAS interpretations

The log says that the data example does not exist and there was no introduction to it earlier which is why I think its not supposed to work but rather I come up with my interpretation?
SAS Super FREQ

## Re: SAS interpretations

@saza wrote:
The log says that the data example does not exist and there was no introduction to it earlier which is why I think its not supposed to work but rather I come up with my interpretation?

Maybe the professor just wants you to explain what would be the outcome of such code indeed.

Here is an example of a working one-way ANOVA :

Example 52.10 Testing for Equal Group Variances

https://go.documentation.sas.com/doc/en/statug/15.2/statug_glm_examples10.htm