How can I get verification code for matlab online?
Mostrar comentarios más antiguos
Respuestas (3)
Luis Alberto López Soledispa
el 14 de Mayo de 2020
0 votos
6
3
7=
Luis Alberto López Soledispa
el 14 de Mayo de 2020
0 votos
2+2=
Munirah Abdulraheem
el 24 de Feb. de 2021
betaHat0 = M0.Coefficients.Estimate;
yHat0 = [1,X2005]*betaHat0;
D = dates(end);
Xm = min([X0(:);X2005']);
XM = max([X0(:);X2005']);
Ym = min([y0;yHat0]);
YM = max([y0;yHat0]);
% Estimate a VAR(1) model for the differenced predictors (with
% undifferenced |AGE|):
numLags = 1;
D1X0PreSample = D1X0(1:numLags,:);
D1X0Sample = D1X0(numLags+1:end,:);
numPreds0 = numParams0-1;
VARSpec = vgxvarx(vgxset('n',numPreds0,'Constant',true,'nAR',numLags),...
D1X0Sample,[],D1X0PreSample);
% Forecast the predictors in D1X0:
horizon = 1;
ForecastD1X0 = vgxpred(VARSpec,horizon,[],D1X0);
% Integrate the differenced forecast to obtain the undifferenced forecast:
ForecastX0(1) = ForecastD1X0(1); % AGE
ForecastX0(2:4) = X0(end,2:4)+ForecastD1X0(2:4); % Other predictors
Xm = min([X0(:);ForecastX0(:)]);
XM = max([X0(:);ForecastX0(:)]);
% Forecast the response from the regression model:
ForecastY0 = [1,ForecastX0]*betaHat0;
Ym = min([y0;ForecastY0]);
YM = max([y0;ForecastY0]);
Box_Jenkins = ForecastY0;
4 comentarios
Munirah Abdulraheem
el 24 de Feb. de 2021
Can someone please run this for me? And show the output.
per isakson
el 24 de Feb. de 2021
On R2018b
Undefined variable "M0" or class "M0.Coefficients.Estimate".
Error in cssm (line 2)
betaHat0 = M0.Coefficients.Estimate;
Munirah Abdulraheem
el 12 de Mzo. de 2021
Thank you very much
Munirah Abdulraheem
el 7 de Abr. de 2021
Hi. How do I fix the problem? Thanks
Categorías
Más información sobre Linear and Nonlinear Regression en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!