example_ms_ar_fit.m
来自「matlab自回归马尔可夫转换模型仿真估计与预测」· M 代码 · 共 17 行
M
17 行
% 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 + =
减小字号Ctrl + -
显示快捷键?