Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ExtractStateFit from FitMCMC #64

Open
workersparty opened this issue Jul 9, 2020 · 2 comments
Open

ExtractStateFit from FitMCMC #64

workersparty opened this issue Jul 9, 2020 · 2 comments

Comments

@workersparty
Copy link

workersparty commented Jul 9, 2020

Hi Sir,

Thank you for writing this wonderful package.

I tried to run the code in the MSGARCH manual regarding ExtractStateFit:

# create model specification>
spec <- CreateSpec()
# load data
data("SMI", package = "MSGARCH")
# fit the model on the data with ML estimation
fit <- FitML(spec = spec, data = SMI)
SR.fit <- ExtractStateFit(fit)
print(SR.fit)

For FitML, it works.

However, when I try to do the same with FitMCMC, I get the following output and error:

# create model specification
spec <- CreateSpec()
# load data
data("SMI", package = "MSGARCH")
# fit the model on the data (here, I have changed to FitMCMC)

fit <- FitMCMC(spec = spec, data = SMI)
SR.fit <- ExtractStateFit(fit)

> SR.fit
[[1]]
Specification type: Single-regime
Specification name: sGARCH_norm
Number of parameters in variance model: 3
Number of parameters in distribution: 0
------------------------------------------
Posterior sample (size: 1000)

Error in summary(object$par)$stat[colnames(object$ctr$par0), ] : subscript out of bounds

How can I rectify this?

Thank you for your help.

@keblu
Copy link
Owner

keblu commented Nov 24, 2020

Thx, will take a look. Sorry for the long delay, I haven't been focused on that project for the last several months.

@KamiKazee17-KJ
Copy link

Hello Sir,
I am facing the same error. Any updates on this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants