So how would I go about lagging vt so that I can estimate a logit model that also has vt-1 as a predictor? Like such: Array
My code so far looks like this (where USREC is my binary outcome):
Code:
ssc install freduse
freduse USREC UNRATE CMRMTSPL FEDFUNDS INDPRO
gen t = mofd(daten)
format t %tm
tsset t
keep if tin(1969m1, 2020m2)
then modelling a logit without the lag of v would look like this (and let's say, for simplicity, I use 5 lags):
Code:
logit USREC L1.USREC L(1/5).D.UNRATE L(1/5).D.CMRMTSPL L(1/5).D.FEDFUNDS L(1/5).D.INDPRO if tin(1969m1,2019m2)
0 Response to How to lag an entire equation
Post a Comment