BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
A_S
Fluorite | Level 6 A_S
Fluorite | Level 6

Dear SAS Communities,

 

I need to model a binary outcome (event = 1, nonevent = 0) with the independent variables being time series data (continuous). The dependent variable marks when event occured during a specific time period, and itself is a time series.

 

I would greatly appreciate guidance on which proceedures are applicable. The PROCs I tried thus far appear to model continuous outcomes.

 

Here are some more specific questions whose answer would help:

Is there a way to set PROC PANEL to a logit model (this power point says it is possible http://www.indiana.edu/~wim/docs/10_7_2011_slides.pdf)?

How do you set PROC NEURAL or HPNEURAL to run a recurrent neural network?

How do you use time series data in PROC LOGISTIC (my understanding is that LAG is for categorical variables)?

How do you set PROC VARMAX or SSM for binary outcomes?

 

Thank you!

acs

1 ACCEPTED SOLUTION

Accepted Solutions
alexchien
Pyrite | Level 9

PROC NEURAL or HPNEURAL only support regular feed-forward neural net architectures, not recurrent neural net. You can mimic the time series effects by adding lagged dependent variable as inputs. This approach usually works pretty well for very short-term forecast as it is exactly how the model is trained. If multiple steps out forecast is required, you will run into issues with forecast errors propagating exponentially into the future steps because the forecasts has to be fed back into inputs for the lagged dependent variables to generate next step of forecast. The same issue applies to any non-time series models such as regression, logistic regression, decision tree, etc. It is less of an issue if you use lagged independent variables + all future values of independent variables are known.

 

I am not sure if PROC SSM and PROC VARMAX supports binary dependent var.

View solution in original post

6 REPLIES 6
Ksharp
Super User

If you are forecasting a variable, then it is called "Impulse Interventions"

I quoted example from documentation here. and

also check "Example 8.6: Detection of Level Changes in the Nile River Data"

in PROC ARIMA.

 

data a;
set a;
ad = (date = '1mar1992'd);
run;
proc arima data=a;
identify var=sales crosscorr=ad;
estimate p=1 q=1 input=ad;
run;
A_S
Fluorite | Level 6 A_S
Fluorite | Level 6
Thank you! Will this example cover cases where the impulse is the target variable?
Ksharp
Super User

No. I don't know how to do Logistic Regression with time series data.

Maybe you should consider about PROC GLIMMIX .

A_S
Fluorite | Level 6 A_S
Fluorite | Level 6
Thank you!
alexchien
Pyrite | Level 9

PROC NEURAL or HPNEURAL only support regular feed-forward neural net architectures, not recurrent neural net. You can mimic the time series effects by adding lagged dependent variable as inputs. This approach usually works pretty well for very short-term forecast as it is exactly how the model is trained. If multiple steps out forecast is required, you will run into issues with forecast errors propagating exponentially into the future steps because the forecasts has to be fed back into inputs for the lagged dependent variables to generate next step of forecast. The same issue applies to any non-time series models such as regression, logistic regression, decision tree, etc. It is less of an issue if you use lagged independent variables + all future values of independent variables are known.

 

I am not sure if PROC SSM and PROC VARMAX supports binary dependent var.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 5339 views
  • 3 likes
  • 3 in conversation