Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Home
- /
- Analytics
- /
- Stat Procs
- /
- SAS interpretations

- RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

🔒 This topic is **solved** and **locked**.
Need further help from the community? Please
sign in and ask a **new** question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Posted 03-26-2022 01:48 PM
(1031 views)

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.

- Consider the model below:

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

**UPDATED RESULTS AND TABLE:**

1 ACCEPTED SOLUTION

Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

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.

To start with ...

PRICE = *β*0 + *β*1 POOL + *β*2(SIZE −2200) + *β*3 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

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

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.

To start with ...

PRICE = *β*0 + *β*1 POOL + *β*2(SIZE −2200) + *β*3 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

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

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

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

This was my code:

data poolsize;

set newprices;

poolsize = pool*(size-2200);

run;

proc reg data=poolsize;

model price = poolsize pool/CLB;

run;

data poolsize;

set newprices;

poolsize = pool*(size-2200);

run;

proc reg data=poolsize;

model price = poolsize pool/CLB;

run;

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Hello,

If you want to fit this model :

PRICE = *β*0 +*β*1 POOL +*β*2(SIZE −2200)+*β*3 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

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

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

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

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

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

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

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?

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

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 !

See here for more info:

https://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

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

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?

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?

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

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

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

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

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

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?

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

@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

Good luck with your studies,

Koen

**Available on demand!**

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.