Search found 21 matches

by Brc
Tue Mar 03, 2026 1:13 pm
Forum: Looking for Code?
Topic: STAR-GARCH model
Replies: 1
Views: 1151

STAR-GARCH model

Hello Dear Tom,

I am looking for RATS codes for STAR-GARCH model (without adding the ST to the GARCH process) which introduced by Felix Chan and Michael McAleer [2002]. Thank you for your helps.

Best Regards.
by Brc
Tue Mar 03, 2026 11:20 am
Forum: Looking for Code?
Topic: STAR-GARCH MODEL
Replies: 6
Views: 7981

Re: STAR-GARCH MODEL

Hello Dear Tom,

I'm seaching for TSAYP185.RPF file to apply STAR-GARCH model; however, I could not find the file. Can you please guide me to find it. Thank you very much.

Best regards.
by Brc
Mon Jan 19, 2026 12:19 pm
Forum: State Space Models/DSGE
Topic: finding output gap by using Kalman filter.
Replies: 1
Views: 3080

finding output gap by using Kalman filter.

Hello,

I have GDP which is quarterly data from 1998:q1 to 2025:q1.

I am trying to find output gap by using Kalman filter. How can I write down its codes? or how can I find its codes?

Please help me to do this. Thank you.
by Brc
Thu Oct 30, 2025 3:55 am
Forum: Structural Breaks and Switching Models
Topic: Long-run solution of the estimated STAR models
Replies: 1
Views: 22969

Long-run solution of the estimated STAR models

Hello, I have an estimated nonlinear STAR model, which now behaves like a linear model. I would like to estimate its long-run solution. When the transition function takes the extreme values of F = 0 and F = 1, I want to determine where the model converges after applying a shock. I could not find a s...
by Brc
Sun Sep 28, 2025 9:59 am
Forum: Help With Programming
Topic: Forecasting a Linear model
Replies: 3
Views: 42219

Re: Forecasting a Linear model

Thank you for your helps. I have working on one-step ahead forecast for univariate linear model estimation. According to your instruction, I rewrite my code as follows: Is this code correct? DO I=0,64,1 * LINREG(DEFINE=FOREQ,NOPRINT) Y 2008:1 2019:12+I # constant Y{1 2 3 4 5} *** UFORECAST(EQUATION=...
by Brc
Sat Sep 27, 2025 4:16 pm
Forum: Help With Programming
Topic: Forecasting a Linear model
Replies: 3
Views: 42219

Forecasting a Linear model

Hello, I want to forecast the following linear AR model: DO I=0,20,1 * LINREG(DEFINE=FOREQ,NOPRINT) Y 1998:1 2019:12+I # constant Y{1 3 4 5 7 } *** STEPS(NOPRINT) 1 1 2020:1+I # FOREQ LF 2020:1+I LFE * SET SLFE = LFE**2 STATISTICS(noPRINT) SLFE COMPUTE RMSE = SQRT(%MEAN) DISPLAY 'MEAN' %MEAN 'RMSE' ...
by Brc
Wed Jun 04, 2025 3:48 pm
Forum: Structural Breaks and Switching Models
Topic: Forecast TAR and AR model
Replies: 1
Views: 32222

Forecast TAR and AR model

Dear Tom, Thank you for your helps during learning RATs for TAR model. I also need to forecast AR model and TAR model, and I need to plot these forecasted TAR and AR models. And I need to calculate Mean Error, Mean Absolute Error, Root Mean Square Error, Mean Square Error, and Theil's U for both the...
by Brc
Wed Jun 04, 2025 3:30 pm
Forum: Structural Breaks and Switching Models
Topic: A TAR model with three regimes
Replies: 1
Views: 49898

A TAR model with three regimes

Dear Tom, So far, I'm estimating a TAR model with two regimes. However, I could not find any RATs codes for a TAR model with three regimes. Can you please help me to find RATs codes for TAR model with 3 regimes or please help me to transform TAR model with 2 regimes to with 3 regimes? I transform th...
by Brc
Wed Jun 04, 2025 1:09 pm
Forum: Structural Breaks and Switching Models
Topic: About TAR model: Chan's method to select threshold value
Replies: 4
Views: 34447

Re: About TAR model: Chan's method to select threshold value

Dear Tom, Thank you for your attention and for taking the time to help me. I see my mistake.
by Brc
Tue Jun 03, 2025 4:26 pm
Forum: Structural Breaks and Switching Models
Topic: About TAR model: Chan's method to select threshold value
Replies: 4
Views: 34447

Re: About TAR model: Chan's method to select threshold value

OPEN DATA "/Users/brc/Desktop/TAR_Study/Tar model_data.xlsx" CALENDAR(M) 2003:2 DATA(FORMAT=XLSX,ORG=COLUMNS) 2003:02 2025:02 Z *** Table *** STATS Z *** ******Select Lag Order******* SOURCE C:\RATS-PROCEDURES\lagselec.src @lagselect(sclag=24, maxo=24) Z ************** ***Linear Model Est...
by Brc
Tue Jun 03, 2025 1:44 pm
Forum: Structural Breaks and Switching Models
Topic: About TAR model: Chan's method to select threshold value
Replies: 4
Views: 34447

About TAR model: Chan's method to select threshold value

Hello Dear Tom, I have a question about TAR model. My series is Z and period is from 2003:2 to 2025:2 (monthly/ 265 observations). The lag order of Z is 9. That's, Z ~AR(9) by AIC. I have determined transition variable as Z{2}. Now, I need to apply Chan's method to select threshold value. That's, fo...
by Brc
Tue Jun 03, 2025 11:22 am
Forum: Structural Breaks and Switching Models
Topic: About TAR Model
Replies: 3
Views: 32942

Re: About TAR Model

Dear Tom, thank you for your helps. That's to say, after omitting insignificant lags in linear Model, conducting @THRESHTEST and @tsaytest tests is wrong way. In brief, these are wrong. @THRESHTEST(THRESH=Y3,TRIM=0.15,GRAPH,NREPS=5000) Y # Y{1 5 7 9} ************************************ DISPLAY 'CDS...
by Brc
Mon Jun 02, 2025 6:58 pm
Forum: Structural Breaks and Switching Models
Topic: About TAR Model
Replies: 3
Views: 32942

About TAR Model

Hello Dear Tom, I have a inflation data set with 265 observations (2003:02 - 2025:02 / monthly) I have found that lag order is 9 by AIC. That's, the data set Y follows AR(9). I run the linear regression AR(9) model. And then, I dropped the insignificant lags. Then, the linear model with significant ...
by Brc
Thu Dec 26, 2024 1:27 pm
Forum: Other RATS Usage Questions
Topic: seasonality problem in a data
Replies: 1
Views: 49987

seasonality problem in a data

I do seasonality test in J-demetra. And I obtained seasonality problem in autocorralation test ac(12) and ac(24). how can I deal with this seasonality problem?

I upload the test results as a picture.
seasonality.png
seasonality.png (111.21 KiB) Viewed 49987 times
by Brc
Sun Dec 22, 2024 11:48 am
Forum: Other RATS Usage Questions
Topic: Test for no remaining nonlinearity(additive test) and test for parameter consistency (Terasvirta nonlinear STAR model)
Replies: 7
Views: 29929

Re: Test for no remaining nonlinearity(additive test) and test for parameter consistency (Terasvirta nonlinear STAR mode

Okay thank you. I have one more question. How can I test for parameter consistency for LSTAR and ESTAR models? I have no idea what any of that is and, aside from being really bad coding (no one should ever hard code the numbers into those formulas), it doesn't even look like it's a doing a correct i...