⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 example_ms_ar_fit.m

📁 Autoregressive Markov Switching Model函数用于评估、仿真及预测自回归的马尔可夫转换模型。可以选择用于模型估计的分布函数。用于研究时间序列结构性变化
💻 M
字号:
% Example Script for MS_AR_Fit.m (run it in the same directory)

clear;

addpath('m_Files');

load Example_Data.mat; % load .mat file

ar=4;                       % Number of lags in autoregressive component
k=2;                        % Number of states 
x=ret;                      % Time series from example.mat
advOpt.distrib='Normal';    % Distribution to use ('Normal' or 't' - default = 'Normal')
advOpt.std_method=1;        % Method for standard error calculation

[Spec_Output]=MS_AR_Fit(x,ar,k,advOpt); % fit the model

rmpath('m_Files');

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -