BookmarkSubscribeRSS Feed
RACHEL2425
Fluorite | Level 6

Is the following regression appropriate?

 

For example: 

 

PROC REG DATA=work.wastewater PLOTS = (FITPLOT);

where '30nov2021'd <= sasdate <= '9jan2022'd ;

MODEL LOGMGC = sasdate / clb;

RUN;

 

1 REPLY 1
PaigeMiller
Diamond | Level 26

Of course, you CAN do this and get results. Is it appropriate? That depends on a lot of things, including an assumption that LOGMGC increases or decreases linearly as the day changes over this time period. Only you can determine if that is a good assumption for your problem.

 

More naturally, people use time series models to model the effect of changing time on some response, this does not impose a linear response, but allows for all different types of response of the variable LOGMGC to the change in day, including modeling the effect of auto-correlation, periodic changes, and other time series effects.

--
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

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 591 views
  • 2 likes
  • 2 in conversation