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

Hi everyone,

 

  I'm sorry in advance if this is a dumb question. Say I'm using panel data to model log(Speed) as the response and Turbo as a binary predictor (0= No, 1= Yes). My question:

1- Is Proc Mixed usable here, or do I have to use PROC NLMIXED?

2-  Would the results be valid and interpretable as they are in cross-sectional data (i.e. we get x% in speed for Turbo)?

 

SAS Version: 9.4

 

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
Rick_SAS
SAS Super FREQ

1. You can use PROC MIXED and other linear regression procedures if you first use the DATA step to define logSpeed = log(speed).  Then use logSpeed as the response variable.

 

2. I am not sure what you are asking, but perhaps it has to do with the interpretation of the parameter estimates for Turbo. If you model

log(Speed) = Intercept + A*Turbo then 

Speed = exp(Intercept)*exp(A*Turbo)

Thus when Turbo=0,  the predicted speed is exp(Intercept).

When Turbo=1,  the predicted speed is exp(Intercept)*exp(A).

So the model predicts that using Turbo results in MULTIPLYING the speed by exp(A).

View solution in original post

2 REPLIES 2
Rick_SAS
SAS Super FREQ

1. You can use PROC MIXED and other linear regression procedures if you first use the DATA step to define logSpeed = log(speed).  Then use logSpeed as the response variable.

 

2. I am not sure what you are asking, but perhaps it has to do with the interpretation of the parameter estimates for Turbo. If you model

log(Speed) = Intercept + A*Turbo then 

Speed = exp(Intercept)*exp(A*Turbo)

Thus when Turbo=0,  the predicted speed is exp(Intercept).

When Turbo=1,  the predicted speed is exp(Intercept)*exp(A).

So the model predicts that using Turbo results in MULTIPLYING the speed by exp(A).

mragaa
Obsidian | Level 7
Thanks a lot.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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.

Discussion stats
  • 2 replies
  • 1243 views
  • 1 like
  • 2 in conversation