BookmarkSubscribeRSS Feed
svzplayer
Fluorite | Level 6

Hello everyone,

I have a following problem: I have divided dataset for two subsets - train and test. I wanted to perform three analysis, i.e. simple lin.reg., using box-cox and using genmod with gamma distribution. For the first two I have fitted model for train and calculated it later using proc score.

However, I'm stuck with genmod. How can I predict values (for dataset test) here? Is there any way to calculate it automatically?

Thanks in advance!

1 REPLY 1
PaigeMiller
Diamond | Level 26

One method is to use the STORE command in PROC GENMOD, and then PROC PLM to score your new test data set.

--
Paige Miller

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 1 reply
  • 749 views
  • 1 like
  • 2 in conversation