Hi all,
i try to solve the BlackScholesMerton formula for two unknwons: Asset Value & Asset Volatility.
My basic code is from...
Announcement
Collapse
No announcement yet.
19 results in 0.0097 seconds.
mata
x
You can also choose from the popular tags.

Solvenl  Optimize for 2 unknown variables (in Mata)
 1 post

Implementing BFGS optimisation using stata / mata
How to implement an BFGS optimisation in stata using mata for an equivalent R based optim function ?
The below is the equivalent R...
 2 posts

Mata error when running stcrprep
Hello Statalist
I get an error when trying to run the command stcrprep. I attached the logfile with the trace set on. The initial stset...Last edited by Andreas Jensen; 06 Jul 2018, 02:42.
 2 posts

Ordering regression results based on estimated coefficients
I'm trying to order fixedeffects regression results from the smallest estimated coefficient to the greatest. For example:
Code:sysuse auto, clear
 5 posts

ivreg2 Error "Mata run time error"
Dear all,
I’m encountering some troubles with the ivreg2 command / package.
To be more precise, I’m facing the error message...Last edited by Andreas Denzer; 03 Sep 2017, 08:16.
 1 post

Inverse distance spatial matrix using Stata
Dear All,
I am using Stata 15 to carry out my spatial analysis. I generate an inverse distance function using spmatrix idistance.
...Last edited by Dario Maimone Ansaldo Patti; 19 Jun 2017, 16:34.
 8 posts

regexs() in MATA
Dear all,
I was wondering whether the issue of regexs() in MATA mentioned here has already been solved. In my case the problem is the following....
 5 posts

How to create a 9*9 matrix using variables in Stata?
Hi, there
I have sorted about 10000 firms into 4 benchmarks, and I cut each benchmark into 3 groups according to the 33% percentile, then I cut...Last edited by Kaiyi Liu; 03 Feb 2017, 12:25.
 3 posts

Evaluating linear expressions for tests of coefficients
I am writing an .ado file to calculate tests of coefficients similar to test. I cannot use the code of test or lrtest directly because the test...
 3 posts

Pablo Cristi started a topic Choosing the minimum from several scalars (Information criteria for model with forvalues)in GeneralChoosing the minimum from several scalars (Information criteria for model with forvalues)
Hello.
How can I choose the min value between several scalars?
I'm trying to select the best model based on the information criteria. For...
 5 posts

writing ado file with panel data estimator
Hi! Does anybody have an example of how to write an ado file with an estimator for panel data? (for example a fixedeffects estimator) I am new to writing...
 2 posts

accessing variable characteristics with Mata
Hi, all. I'm working on my first piece of Mata code, which involves modifying the codebookout command so that it outputs variable characteristics as...
 3 posts

bugfixing why initial values are not feasible for optimize()
Hi,
I am using Stata 14.1 MP on mac and unix, and the ado file I painstakingly tested on mock data fails upon its first encounter with enemy fire...
 5 posts

Problem using st_store!
Hello, I have a column vector 200x1 and I created a new variable with this:
st_addvar("double", "media")
...
 4 posts

Loop with chi2 distribution in MATA
Hello, I'm trying to create 200 samples of a chi2 distribution with 20 degree freedom. And I stared with this:
set more off
clear mata...
 3 posts