Prerna Mishra
Followers: 0 Following: 0
Feeds
提问
Returning multiple values in fminbnd
I am trying to solve a dynamic optimization problem in which I solve for optimxal capital and debt. The problem is structured su...
1 year 前 | 0 个回答 | 0
0
个回答提问
Method of moments using genetic optimization
I am trying to calibrate a model using simulated method of moments. I have a function f_SMM that calculates the model moments an...
2 years 前 | 1 个回答 | 0
1
个回答提问
Vector operation giving complex numbers
I am running the followng arithmetic. blog_mean = 0.5000; blog_var = 0.04; beta = .15; sigma = -1.14 x = blog_mean + ran...
2 years 前 | 1 个回答 | 0
1
个回答提问
2-d interpolation in matlab
I have a matrix v0 nd*nk*na, which depends on values of d, k and a. I want to interpolate the matrix v for values of d and k whi...
2 years 前 | 1 个回答 | 0
1
个回答提问
fminsearch error while optimizing over one value in neoclassical growth model
I am trying to solve the stochatic neoclassical growth model using fminsearch. My main function has the following code: clear a...
2 years 前 | 1 个回答 | 0
1
个回答提问
fminbnd error while solving the neoclassical growth model
I am using fminbnd to solve the neoclassical growth model and I have the following code for main.m clear all; close all; ti...
2 years 前 | 1 个回答 | 0
1
个回答提问
Numerical Double Integral in Matlab
I have to do the following integration in matlab b is log normally distributed and I have a vector of 100 random number for b...
2 years 前 | 1 个回答 | 0
1
个回答提问
Constrained regression with constrains on the slopes
I was the following regeression specification ln Q = ln A + alpha * ln K + beta * ln L I want to fins alpha and beta such t...
2 years 前 | 1 个回答 | 0
1
个回答提问
Calculating mean across a column and then subtracting it from all observations based on a row condition
I have a data frame that looks as follows: 1266 2005 247.694000000000 3.30900000000000 12.6660000000000 55.5250000000000 1266 ...
2 years 前 | 1 个回答 | 0
1
个回答提问
How do I use gaoptim toolbox?
How can I install Global Optimization Toolbox? I am trying to use gaoptimset but I keep getting the following error: 'gaoptimse...
2 years 前 | 1 个回答 | 0
1
个回答提问
How so subset observations in a matrix?
I have a matrix that has the follwing columns: [GVKEY FYEAR SALE ASSET] FYEAR ranges from 2005-2019 and there are many GVKEYs ...
2 years 前 | 2 个回答 | 0
2
个回答提问
How to get coordinates of largest element in an array?
I have an array RHSvec that looks as follows: RHSvec = [-2.37702213697260e+17 -2.33711662054550e+19 -615937600693473 -4.41919...
2 years 前 | 2 个回答 | 0
2
个回答提问
How to find the row and column of the largest number in an array?
Hello, I am new to matlab and I am stuck with this. If I have a matrix A as follows: 4.4347 4.5156 4.462 4.7074 1.111 .98...
2 years 前 | 1 个回答 | 0
1
个回答提问
Adding values along different dimensions in an array
I have an array kdsimind that has dimensions 5000X5000X35. I want to initialize is such that along the first dimension I have fl...
2 years 前 | 1 个回答 | 0
1
个回答提问
Add dimensions to a matrix
My RHSvec is a 51X21 matrix. kdpolind is 11X51X21. Doing the following: [RHSval,kprimeind] = max(RHSvec,[],2); gives me a 51...
2 years 前 | 1 个回答 | 0
1
个回答提问
Using ddp solve for optimization over two variables
I have a dynamic programming model, in which the Value of firm today depends on the productivity shock today, capital today, cap...
2 years 前 | 0 个回答 | 0
0
个回答提问
Extracting along a dimension in a 4D array
I have a 4D array of dimsension na*nk*nkprime*nd, each dimension representing, number of shock, number of capital today, number ...
2 years 前 | 1 个回答 | 0
1
个回答提问
fminsearch with integrals and parameters
I am new to using fminsearch in matlab. I want to find the minimum value of the following function: where For now, I assu...
2 years 前 | 1 个回答 | 0