已回答
stepwise regression: Undefined function ' stepwiselm' for input arguments of type 'cell'.
I recommend using a dataset for your problem. A = dataset('File','excercise-data333.txt'); A dataset is a kind of table....

10 years 前 | 0

已回答
how to do vector autoregresion?
If you possess the Econometrics toolbox then the main function is *vgxvarx* . There is extensive documention in Matlab help abou...

10 years 前 | 0

已回答
How to specify limits for lsqnonlin
I am afraid you cannot order the optimizing function to search for a real solution. If you want a real solution you have to mak...

10 years 前 | 0

已回答
How to save images using for loop?
The function imwrite does exactly what you told it to do. The problem is that ['E:\Aneurysms\Images\names(i)_seg','.tif'] ...

10 years 前 | 0

已回答
arima estimate error with garch
The error message is a bit misleading. You did specify Q = 1. I have no idea why the error occurs but I have also received it in...

10 years 前 | 1

| 已接受

已回答
add column to matrix that allows to identify series
If you want to combine numbers and texts in a matrix you have to create a cell matrix, a dataset or a table. However, I am not s...

10 years 前 | 0

| 已接受

已回答
How to assess adequacy of fitted GARCH model?
When you fit an ARIMA model to a time series the residuals should exhibit no heteroscedasticity. If they do you fit an ARIMA/GAR...

10 years 前 | 0

| 已接受

已回答
Backtesting simple moving average trading strategy
Indeed, your code could be the reason that you don't get any buy signal. Try the following: SIGNALS.buy = (SMA.sma4 >= SMA....

10 years 前 | 0

| 已接受

已回答
Estimator standard errors using fmincon (portfolio optimization context)
The key to the standard errors is the Hessian matrix. The variance-covariance-matrix of the coefficients is the inverse of the H...

10 years 前 | 0

| 已接受

已回答
Nonlinear Regression with ARMA Errors
No, Matlab can only do linear regression with ARMA errors. Sometimes you can transform a non-linear equation into a linear one. ...

10 years 前 | 0

已回答
Using crosscorr for comparing two time series with different measurements
It is possible to use the function crosscorr. In your case, however, I would not compare the original time series because they d...

10 years 前 | 0

已回答
Fitting a function of the form x-a for unknown a
Yes, you're looking for an optimization, and I can assure you that it is not a fair amount of work. However it won't work with t...

10 years 前 | 0

| 已接受

已回答
How can I calculate serial correlations?
I recommend the function *autocorr* , but you need the Econometrics toolbox for that. The alternative is the function *corr* .

10 years 前 | 0

已回答
How to simulate ARIMA from residuals?
You can't do that. It is not possible to infer Y from the residuals. Why do want to do that? You already have Y.

10 years 前 | 0

| 已接受

已回答
How to find a 2 π periodic solution?
Why don't you take a pen and a pencil and solve the equation analytically? In fact it is quite easy ....

10 years 前 | 1

已回答
matrix starting index from zero
You cannot do that. The first element is a(1,1) and there's no way to change that.

10 years 前 | 0

已回答
plotResiduals looks for multivariant outliers or?
No. In the example they look for outliers in the residuals, not for outliers in the inedpendent variables. That means they look ...

10 years 前 | 0

| 已接受

已回答
How to remove linear trend from a time series?
Use the matlab function detrend. Or do it yourself. Estimate the linear trend with a linear regression. The residuals of the...

10 years 前 | 0

已回答
how to write this data in text file?
Use the function csvwrite: csvwrite(filename,Matrix) Or consider saving the matrix in a mat-file using the command save....

10 years 前 | 0

已回答
Backtesting portfolio asset allocation
Assume that each column in the matrix _Prices_ contains the time series of one your asset classes. Then calculate first the retu...

10 years 前 | 0

| 已接受

已回答
Wie kann ich Figures in einem PDF Report speichern?
Erzeuge zuerst die Struktur opt: opt = struct; opt.format = 'pdf'; opt.outputDir = pwd; opt.evalCode = true; op...

10 years 前 | 1

已回答
which program is the best to use?
portopt - That's the very function you need!

10 years 前 | 0

| 已接受

已回答
Why is my armax model converging to 0?
I think your expectations are too high. I doubt that an arma model is the appropriate model for a time series such as the one yo...

10 years 前 | 0

| 已接受

已回答
Multilinear Regression using regstats
Use the function as follows: stat = regstats(Y, X); Ommit the third and forth arguments. Especially the last. The functi...

10 years 前 | 0

已回答
How can I download the bloomberg the goverment curve member?
You can download anything from Bloomberg as long as you know the ticker and the field name. If you do, just consult the Matlab h...

10 years 前 | 0

已回答
Efficient portfolios constraints, how can I add a particular constraint ?
The first constraint is easy to implement. ConSet = protcons('PortValue', 1, NumAssets, 'AssetLims', -1, AssetMax) wh...

10 years 前 | 0

| 已接受

已回答
0 and -inf in the residuals inferred from a ARIMA model
For an EGARCH(1,1) model the ARCH and GARCH coefficients are expected to be positive. In your case they are not. That is why you...

10 years 前 | 0

| 已接受

已回答
Reshape vector in a loop
for k = 1 : n xx = [k-1, k]; end

10 years 前 | 0

| 已接受

已回答
How does this Nelson-Siegel functionwork?
The Nelson-Siegel function is non-linear. However, if you know the value of tau, then it is possible to estimate the betas with ...

10 years 前 | 0

已回答
Linear Model final formula
In your example above x1 was a column vector. All you have to do is call the function with a matrix x that contains all the x va...

10 years 前 | 0

加载更多