Community Profile

photo

Armando MAROZZI


Last seen: Today
24 total contributions since 2020

Armando MAROZZI's Badges

  • Thankful Level 3

View details...

Contributions in
View by

Question


How to use 'if else' in this case?
I have the following variance-covariance matrix which is not positive definite: x = [183.5310 -0.4098 8.0035 -0.0333 ...

20 giorni ago | 1 answer | 0

1

answer

Question


How to plot two lines with different scales in MATLAB?
I have attached the dataset I have y = readtable('t.csv'); The dataset has 4 columns: ignoring the first one, the second one i...

circa un mese ago | 1 answer | 0

1

answer

Question


How to select a column on basis of some conditions on the rows?
I have a situation where I have a 6x100 matrix like the one below: x = randn(6,100) What I would like to do is to write a ...

2 mesi ago | 1 answer | 0

1

answer

Question


How to plot a legend with multiple confidence intervals?
I have a plot with a line and 2 confidence intervals (90% and 68%). So, 5 lines in total. I would like to display only the legen...

2 mesi ago | 1 answer | 0

1

answer

Question


How to subset the ylables to be displayed only on certain rows?
I have 24 series to plot but I would like to have the y-label displayed only on the rows 1,7,13,19. I tried this solution but i...

2 mesi ago | 1 answer | 0

1

answer

Question


How to use if-else in this scenario?
I have a vector of numbers. What I would like to do is to change the composition of this vector depending on which function I am...

3 mesi ago | 1 answer | 0

1

answer

Question


How to reshape the x-axis in this case?
I have a chart (attached) that starts the sample in 2008 despite the actual data starts in 2009-01. I would like to understand w...

3 mesi ago | 1 answer | 0

1

answer

Question


How to use if statements and for loop to plot the following series?
I am trying to plot the following series in a subplot (6X2). The idea is to have the first column in blue, while the second in r...

4 mesi ago | 1 answer | 0

1

answer

Question


How to use if/else on the basis of rows?
I have a pre-specified model that runs smoothly. The problem is that I have two datasets for the same model. The two datasets ch...

5 mesi ago | 1 answer | 0

1

answer

Question


Dashed confidence intervals and xlabel
Today is my "plot day". I am trying to fit subplot with shaded confidence intervals (find the dataset attached). Besides, I have...

8 mesi ago | 1 answer | 0

1

answer

Question


How to plot two different styles of confidence intervals in looped subplots?
I have a plot with 6 variables and 5 subplot. In one case, the third variable, I want it to display two lines in one graph. So f...

8 mesi ago | 1 answer | 0

1

answer

Question


How to plot two lines in a looped subplot in matlab?
I plotted 5 graphs with a loop in MATLAB. Now, I want to add a further line only to the third plot. However, when I try to do it...

8 mesi ago | 1 answer | 0

1

answer

Question


How to loop the number of lags in a VAR?
I am fitting a simple var model. What I would like to do is basically choosing the optimal number of lags. I can do it in two wa...

8 mesi ago | 0 answers | 0

0

answers

Question


Problems with double looping
I am trying to implement this double loop. There is lot of material online on double looping in matlab but I don't manage to mak...

10 mesi ago | 1 answer | 0

1

answer

Question


Problems in using "dwtest"
I have a simple Tx3 matrix of residuals. I want to apply to it the dwtest to test for autocorrellation (I also used autocorr but...

10 mesi ago | 1 answer | 0

1

answer

Question


How to set the IRFs for one variable equal to 0?
I have a VAR model with 4 variables. I ran my VAR in the baseline scenario. What I want to do now is a simulation exercise where...

10 mesi ago | 0 answers | 0

0

answers

Question


How to loop different y-labels in different plots?
I want to display 4 graphs of Impulse Response Functions (IRFs) with their confidence intervals. I would like the labels to appe...

10 mesi ago | 1 answer | 0

1

answer

Question


How to pass the same function to different columns?
I would like to pass the same function to all the columns of an object. I tried this code but it doesn't work for j = 1:3 ...

10 mesi ago | 1 answer | 0

1

answer

Question


How to estimate the optimal number of lags in VAR models from the data?
I am fitting a VAR model and I was wondering which commands (if any) in MATLAB calculates the optimal number of lags given the s...

10 mesi ago | 1 answer | 0

1

answer

Question


How to reproduce this table in MATLAB?
I would like to reproduce this table in MATLAB (including title and note). Unfortunately, the analysis I carried out doesn't hav...

10 mesi ago | 0 answers | 0

0

answers

Question


Why can't I write this row vector?
I simply want a 1x3 row vector like this: . I tried the following: [x(1,3); x(2,3); x(3,3)] but I got the following error: Un...

10 mesi ago | 2 answers | 0

2

answers

Question


How to code this quadratic minimization problem subject to a linear constraint?
After having performed Factor Analysis (FA), I am now trying to implement the following rotation strategy (Swanson 2017 - detail...

10 mesi ago | 0 answers | 0

0

answers

Question


Factor Analysis by Principal Component Method
I am trying to replicate a paper that implements Factor Analysis by Principal Component Method. I have been reading a lot in Mat...

10 mesi ago | 1 answer | 0

1

answer

Question


How can I delete the same chunck from a column?
I am new to Matlab (coming from R). Sorry if the question is very basic. I have a 216x8 table. The first column is a Date colum...

10 mesi ago | 1 answer | 0

1

answer