Search found 72 matches

by alexecon
Sat Oct 20, 2018 5:55 am
Forum: Data: Reading, Writing, Transforming
Topic: rollreg: change coeff(k) to e.g. coeffk
Replies: 1
Views: 6575

rollreg: change coeff(k) to e.g. coeffk

How can I do that please? I would like to work with the resulting coefficient and standard error series from rollreg but instructions such as SET do not recognise them (because of the brackets, I suspect).

Thank you.
by alexecon
Thu Jun 14, 2018 12:33 pm
Forum: Examples and Sample Code
Topic: Ehrmann-Ellison-Valla(2003) Regime-dependent IRF's
Replies: 153
Views: 326500

Re: Ehrmann-Ellison-Valla(2003) Regime-dependent IRF's

No. Unless you did something wrong---clearing the memory should have no effect on a re-run. If you're getting very different results from different runs, then you have an absorbing state in the chain where it apparently either picks 1 or picks 0 for some set of entries and can't move away from thos...
by alexecon
Thu Jun 14, 2018 10:56 am
Forum: Examples and Sample Code
Topic: Ehrmann-Ellison-Valla(2003) Regime-dependent IRF's
Replies: 153
Views: 326500

Re: Ehrmann-Ellison-Valla(2003) Regime-dependent IRF's

I assume you have a fair number of entries where the probability of the regimes is somewhere in the midrange rather than near 0 or 1. No, actually the regimes are very clearly defined with most probabilities being close to 0 or 1. To see what's going on, I ran my program six times and got two sets ...
by alexecon
Thu Jun 14, 2018 5:54 am
Forum: Examples and Sample Code
Topic: Ehrmann-Ellison-Valla(2003) Regime-dependent IRF's
Replies: 153
Views: 326500

Re: Ehrmann-Ellison-Valla(2003) Regime-dependent IRF's

I have adapted this for my own work and the output is very sensible, especially w.r.t. impulse responses. I'm using the MCMC program with 20,000 draws (4,000 burn-in) and find that the number of observations in each regime differs quite substantially from estimation to estimation. Should I increase ...
by alexecon
Wed Mar 28, 2018 6:18 am
Forum: Looking for Code?
Topic: Panel Threshold Models with Endogeneity
Replies: 0
Views: 6202

Panel Threshold Models with Endogeneity

The paper "Inflation and Growth: New Evidence From a Dynamic Panel Threshold Analysis" by Kremer, Back and Nautz (Empirical Economics, 2013) updates Hansen's (1999, 2004) work to address endogeneity in panel threshold models. Alexander Bick makes his data and Matlab code available here: ht...
by alexecon
Tue Jan 09, 2018 9:34 am
Forum: VARs (Vector Autoregression Models)
Topic: Restricted Trend IN VECM
Replies: 5
Views: 11127

Re: Restricted Trend IN VECM

OK, I reconstructed Pi by multiplying the vector of ECTs with the cointegrating vector and generated the 2x3 matrix I was looking for. Figured out that %VECMPI does not include the estimates of the trends (even though they are in the CV).
by alexecon
Mon Jan 08, 2018 3:59 pm
Forum: VARs (Vector Autoregression Models)
Topic: Restricted Trend IN VECM
Replies: 5
Views: 11127

Re: Restricted Trend IN VECM

Is it possible to replicate this CATS instruction

Code: Select all

@cats(lags=2,dettrend=cidrift)
# myvar1 myvar2
in RATS? Thank you.
by alexecon
Fri Jan 05, 2018 12:14 pm
Forum: VARs (Vector Autoregression Models)
Topic: Restricted Trend IN VECM
Replies: 5
Views: 11127

Re: Restricted Trend IN VECM

Can you please put me out my misery here. In CATS, this @cats(lags=2,dettrend=cidrift) # myvar1 myvar2 gives me a 2x3 matrix Pi. I am trying to replicate this in RATS with the following: @johmle(lags=2,det=rtrend,cv=cv) # myvar1 myvar2 * compute cv=cv/cv(1) * set trend = t set ect = cv(1)*myvar1+cv(...
by alexecon
Wed Dec 27, 2017 1:21 pm
Forum: Graphics, Reports, and Other Output
Topic: Plot of Option Delta over Time to Maturity
Replies: 6
Views: 18132

Re: Plot of Option Delta over Time to Maturity

Thank you for your contribution. What's the significance of the 30 to 70 range used (in SMPL's and in DO loops)? This sets the range of asset prices for which the deltas and other greeks are calculated. The horizontal axis in the relevant graphs (i.e. plots of a greek against asset price) uses this...
by alexecon
Wed Dec 27, 2017 1:12 pm
Forum: Graphics, Reports, and Other Output
Topic: Plot of Option Delta over Time to Maturity
Replies: 6
Views: 18132

Re: Plot of Option Delta over Time to Maturity

Thank you for all the input. The following shows how to plot option greek parameters against asset prices, maturity, etc. in RATS. The examples correspond to those in the chapter on the Greeks from Hull's Options, Futures and Other Derivatives . This sets the input values for the non-dividend-paying...
by alexecon
Sat Dec 02, 2017 4:09 pm
Forum: Graphics, Reports, and Other Output
Topic: Plot of Option Delta over Time to Maturity
Replies: 6
Views: 18132

Re: Plot of Option Delta over Time to Maturity

You're right, I didn't explain well what I need. Before plotting deltas over time, I need to generate them first, e.g. with something like this: do i = 1,100 compute delta(i)=%cdf((log(price/strike)+expire(i)*(rate-cashflow+.5*sigma**2))/(sigma*sqrt(expire(i)))) end do i The problem with the above i...
by alexecon
Sat Dec 02, 2017 11:04 am
Forum: Graphics, Reports, and Other Output
Topic: Plot of Option Delta over Time to Maturity
Replies: 6
Views: 18132

Plot of Option Delta over Time to Maturity

I'm trying to do the above but can't figure out how. I have had success plotting delta, theta and gamma against the underlying asset price, as in the following program: smpl 30 70 * * calculate BSM price * @BSOPTION(price=49,strike=50,rate=0.05,sigma=0.2,expire=0.3846) bsm dis "BSM price is&quo...
by alexecon
Wed Nov 22, 2017 1:46 pm
Forum: VARs (Vector Autoregression Models)
Topic: The 'Davies' Test
Replies: 13
Views: 22043

Re: The 'Davies' Test

I'm not using their (Balcilar et al's) data and 'my' likelihood is better behaved. I guess it should be OK.
by alexecon
Wed Nov 22, 2017 1:05 pm
Forum: VARs (Vector Autoregression Models)
Topic: The 'Davies' Test
Replies: 13
Views: 22043

Re: The 'Davies' Test

Thank you for the reference. I can see that Fruhwirth-Schnatter uses the SBC to select the number of regimes in chapter 11. I have to read a couple of the references therein to understand more, as I got confused with the "bridge", "importance", and "reciprocal importance&quo...
by alexecon
Wed Nov 22, 2017 11:01 am
Forum: VARs (Vector Autoregression Models)
Topic: The 'Davies' Test
Replies: 13
Views: 22043

Re: The 'Davies' Test

I don’t know. Is testing with the SBC not subject to the issue of nuisance parameters? It seems surprising that so much work has gone into resolving this, if the SBC were to be the answer.