Question

setting up the ''options' in fmincon
Dear all, I want to maximize a function, where the univariate unknown, x, with respect to which the maximization takes place ...

plus de 2 ans ago | 1 answer | 0

1

Question

Setting up the fminunc function
Dear all I want to maximize a function, where the univariate unknown, x, with respect to which the maximization takes place is b...

plus de 2 ans ago | 1 answer | 0

1

Question

finding the maximun of a function along with hessian matrix
Dear All, I have the following function f=-1/2*log(2*pi) -.5*(x+a*b) -.5*y./exp((x+a*b) ) -1/2*log(2*pi*c)-0.5*(x-d*(1...

presque 3 ans ago | 1 answer | 0

1

Question

solving a nonlinear equation faster
Dear all, I want to solve this equation -0.5+ 0.5*a*exp(-x-b*c) -(x-d)/e=0 where a,b,c,d are known quantities that ch...

presque 3 ans ago | 1 answer | 0

1

Question

Solving a nonlinear equation with time-varying parameters
Dear all, I want to solve this nonlinear equation: (a*b*exp(-c*d))*exp(-x)+2*b -2*x-b=0, where in each iteration of the ...

presque 3 ans ago | 1 answer | 0

1

Question

Using kronecker product and elementwise multiplication
Dear all, I have the matrix der=[2 5 ;3 4] OMEGA=kron(eye(2),der); Suppose that now I have the 1 by 2 vector y ...

presque 3 ans ago | 2 answers | 0

2

Question

Inverse wishart parameter estimates
Dear all, For beta distribution and gamma distribution there are the functions betafit and gamfit, respectively. Is there...

plus de 3 ans ago | 0 answers | 0

0

Question

Can I find the inverse of a sparse matrix faster?
Dear all, I have the following code T=2000; NN = speye(T) + sparse(2:T,1:(T-1),2*ones(1,T-1),T,T); u = NN\eye(...

plus de 3 ans ago | 2 answers | 0

2

Question

How to divide a large sparse matrix
Dear all I have NN = speye(T) + sparse(2:T,1:(T-1),2*ones(1,T-1),T,T); and I want to calculate zz=(NN\( eye...

plus de 3 ans ago | 1 answer | 0

1

Question

constructing identifiers for a large panel data
Dear all, I have a panel data of 180 countries covering the period 2000-2010. Here is a sample: list={'Australia' ...

plus de 3 ans ago | 1 answer | 0

1

Question

How can we find the non common strings from multiple columns
Dear all, I want to compare the following three columns of strings (of different length) and find the entries that are NOT ...

plus de 3 ans ago | 2 answers | 0

2

Question

how to select particular rows from a matrix
Dear all, I have a panel data set(countries, years) of dimension 20000 by 200. My goal is 1) to choose those countries ...

plus de 3 ans ago | 2 answers | 0

2

Question

how do we plot a bivariate normal distribution from one side?
Dear all I plot the following bivariate distribution mu = [0 0]; Sigma = [.25 .3; .3 1]; x1 = -3:.2:3; x2 = -3:.2:3; ...

presque 4 ans ago | 1 answer | 0

1

Question

Where can I run my Matlab code.
Dear all, I conduct some simulation studies but my laptop is not very fast. Could I run this code to a more powerful pc? Doe...

presque 5 ans ago | 2 answers | 0

2

Question

Generating random draws from a specific poisson distribution
Dear all, I have the following variation of the poisson distribution P(Y=y)=((mean/vbn)^(y))*(nv^(y-1))*(exp(-mean*nv/vb...

presque 5 ans ago | 1 answer | 0

1

Question

How we generate random variates from a generalized poisson distribution?
Dear all, I want to use generate draws from the "generalized poisson distribution". Is there any function in matlab to do that...

presque 5 ans ago | 1 answer | 0

1

Question

Find maximum of a function.
Dear all, I have the following code that aims at maximixing LL_all with respect to "gidraw" which is scalar. %the dat...

environ 5 ans ago | 1 answer | 0

1

Question

inv(A) versus /A. Which of the two is the correct one
Hi all, Let B be a n by 2 matrix and A is a 2 by 2 positive definite matrix. Which of the following two is correct ...

plus de 5 ans ago | 1 answer | 0

1

Question

Is it possible to run my matlab code at another workstation?
Dear all, Unfortunately, my personal laptop is not very strong and it takes days to run my Matlab code. Is it possible to run...

presque 6 ans ago | 0 answers | 0

0

Question

reshaping tables and calculating combination of differences between variables
Hi all, I would like to reshape the following table Area time rates A1 2008 13 A1 2009 12 A2 2008 11 ...

plus de 8 ans ago | 0 answers | 0

0

Question

converting a string of variables to numbers
HI all I have the varible Country Austria Austria Austria Austria Austria Austria...

plus de 8 ans ago | 1 answer | 0

1

Question

grouping observations with specific characteristics
Hi all, I have the following table in excel time country Location price2 1/09 Austria l1 12 2/09 Austria l1 4 3/09 Au...

plus de 8 ans ago | 1 answer | 0

1

Question

Generating a sequence of dates
HI all, I would like to ask if there is a way of generating the below sequence of dates. '2/11/08' '30/11/08' ' 28/1...

plus de 8 ans ago | 1 answer | 0

1

Question

replicating dates and inporting them in an excel file
HI all, I want to replicate the dates '02/11/2008' '30/11/2008' so at to have 02/11/2008 30/11/2008 02/11/2008 ...

plus de 8 ans ago | 1 answer | 0

1

selecting multiple strinfs of variables
Hi Titus, It worked!. thank you so much. I would like to ask you something relevant to the previous question. Apart from the ...

plus de 8 ans ago | 0

Question

selecting multiple strinfs of variables
Dear all, I have produced the following output county interst rate England b1 England b1 England b1 Engla...

plus de 8 ans ago | 2 answers | 0

2

selecting specifi sequence of cells from a matrix
Specifically, I want to save the output of mdata1{idx,end} into excel as well as the corresponding identifiers (that is the colu...

plus de 8 ans ago | 0

selecting specifi sequence of cells from a matrix
Thank oleg so much. it worked! I was trying to save the output of mdata1{idx,end} into excel but so far I cant. Any suggestions...

plus de 8 ans ago | 0

selecting specifi sequence of cells from a matrix
It worked. THank you

plus de 8 ans ago | 0

Question

selecting specifi sequence of cells from a matrix
Hi, I have the price of one good (chocolate) that varies within one country (Greece) across time by store type, location, bran...

plus de 8 ans ago | 4 answers | 0