BookmarkSubscribeRSS Feed
ahschnell
Calcite | Level 5

Hi.  I've run a segmented regression for count data in GENMOD. I created 2 slopes and I want to statistically test the difference between the 2 slopes. Slope1=Slope2 or Slope1-Slope2=0.

 

I can do this easily in STATA using the lincom command, but I can't figure out how to do it in SAS.  TIA

3 REPLIES 3
PaigeMiller
Diamond | Level 26

Here is an explanation and example: https://support.sas.com/kb/24/177.html

--
Paige Miller
sbxkoenk
SAS Super FREQ

Hello @ahschnell ,

 

Could you solve your "problem" with the suggestion of @PaigeMiller ?

I haven't seen any reaction from your side.

 

If your question is still alive, you may consider the usage of PROC NLIN (SAS/Stat) for your segmented regression and accompanying hypothesis test.

See:

Segmented regression models in SAS
By Rick Wicklin on The DO Loop
December 14, 2020

https://blogs.sas.com/content/iml/2020/12/14/segmented-regression-sas.html

 

and

 

The NLIN Procedure
Example 87.1 Segmented Model
https://go.documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.5&docsetId=statug&docsetTarget=st...

 

and

 

The NLIN Procedure
Example 87.5 Comparing Nonlinear Trends among Groups
https://go.documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.5&docsetId=statug&docsetTarget=st...

 

Good luck,
Koen

ahschnell
Calcite | Level 5

Thank you both. This is so helpful thank you.

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 3 replies
  • 426 views
  • 2 likes
  • 3 in conversation