photo

Prerna Mishra


Last seen: ongeveer een jaar ago Active since 2022

Followers: 0   Following: 0

Statistics

  • Thankful Level 2

View badges

Feeds

View by

Question


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...

bijna 2 jaar ago | 0 answers | 0

0

answers

Question


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...

bijna 2 jaar ago | 1 answer | 0

1

answer

Question


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...

ongeveer 2 jaar ago | 1 answer | 0

1

answer

Question


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...

ongeveer 2 jaar ago | 1 answer | 0

1

answer

Question


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...

ongeveer 2 jaar ago | 1 answer | 0

1

answer

Question


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...

ongeveer 2 jaar ago | 1 answer | 0

1

answer

Question


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...

ongeveer 2 jaar ago | 1 answer | 0

1

answer

Question


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...

meer dan 2 jaar ago | 1 answer | 0

1

answer

Question


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 ...

meer dan 2 jaar ago | 1 answer | 0

1

answer

Question


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...

meer dan 2 jaar ago | 1 answer | 0

1

answer

Question


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 ...

meer dan 2 jaar ago | 2 answers | 0

2

answers

Question


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...

meer dan 2 jaar ago | 2 answers | 0

2

answers

Question


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...

meer dan 2 jaar ago | 1 answer | 0

1

answer

Question


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...

meer dan 2 jaar ago | 1 answer | 0

1

answer

Question


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...

meer dan 2 jaar ago | 1 answer | 0

1

answer

Question


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...

meer dan 2 jaar ago | 0 answers | 0

0

answers

Question


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 ...

meer dan 2 jaar ago | 1 answer | 0

1

answer

Question


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...

meer dan 2 jaar ago | 1 answer | 0

1

answer