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

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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