BookmarkSubscribeRSS Feed
PamG
Quartz | Level 8

I wasn't able to find any information online about using distributed lag models in SAS.  This is different from what PROC PDLREG does and is used extensively to to model ambient temperature and pollution data.  I was wondering if SAS has any plans to introduce a procedure for this.

6 REPLIES 6
sbxkoenk
SAS Super FREQ

Hello,

 

[EDIT : Have moved this to "SAS Econometrics and Forecasting" - board by the way ]

 

DLNM = Distributed lag non-linear models 
(it's like PROC PDLREG , but allowing for more flexibility in the relationship between regressors and target time series)

 

Maybe @SASCom1 or @TammyJackson or @StatsMan can answer that question (on having R-DLNM in SAS).

 

DLNM is a modeling framework to flexibly describe associations showing potentially non-linear and delayed effects in time series data, thus a framework for estimating dynamic relationships.

Just note that this can be done in several other ways within SAS !!

Koen

PamG
Quartz | Level 8

Thanks for the response Koen.  Could you elaborate the ways one can do similar analysis in SAS?  How does one go about creating the crossbasis functions that can incorporate the temperature along the non-linear and lagged dimension ?  I need to do conditional logit on individual level data.  It is a case crossover design with 1:5 matching.

sbxkoenk
SAS Super FREQ

Hello,

 

Are you studying / examining the conditional logit estimator for binary panel data models with unobserved heterogeneity and serial correlation?

 

What is your study trying to explain / trying to predict? Natural disasters?

 

Thanks,

Koen

PamG
Quartz | Level 8

This is an ecological study where we are trying to study mortality risk due to exposure to increased ambient temperature.  Most studies are conducted at an aggregate level and we are studying at the individual level.

PamG
Quartz | Level 8

Tagging @Rick_SAS as well  in case he has any information.

TammyJackson
SAS Employee

There is some support for identifying delayed effects in HPFDIAGNOSE (SAS Foundation) and the DIAGNOSE Object of the ATSM Package (SAS Viya).  Look for DELAYINPUT and DELAYEVENT.
https://go.documentation.sas.com/api/collections/pgmsascdc/v_042/docsets/castsp/content/castsp.pdf?l...

'DELAYEVENT' takes a nonnegative numeric Value that specifies the event variable lag.
'DELAYINPUT' takes a nonnegative numeric Value that specifies the input variable lag. If not specified,
the delay lags for the inputs are automatically chosen.

 

Another option would be to call R from SAS. However, if there is support for this method in Python, that would be easier to integrate with SAS. 

Here is a blog that shows using Python from SAS. 

 

https://communities.sas.com/t5/SAS-Communities-Library/Improve-Your-Nowcasting-in-SAS-Visual-Forecas...

and the original slides from the Federal Forecaster's Conference:

https://www2.gwu.edu/~forcpgm/Jackson_slides.pptx

 

 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 6 replies
  • 1295 views
  • 2 likes
  • 3 in conversation