I am using minbound to find the solution to an equation the involves log (equivalent to solver in Excel). Results are not produced.when a log function is included. There is not any problem with the exp function. I show an example below ( I have a more complicated equation, so it is not possiible to use algebra to eliminate the logs). This should be easy (in Excel this is produced easily, but I need to solve this for thousands of observations). Do you know a solution?
program drop find_x
program find_x, rclass
version 1
args x f
return scalar fx = (-14139276- (`f' - ln(1-`x')) )^2
end
minbound find_x , arg( 0.33407511) range(0,1)
disp r(x)
program drop find_x
program find_x, rclass
version 1
args x f
return scalar fx = (-2- (`f' - exp(1-`x')) )^2
end
minbound find_x , arg( 0.33407511) range(0,1)
disp r(x)
Related Posts with Does minbound run with logs?
Error while trying to add legend to a KM plot.Hi, I am trying to create Kaplan-Meier curves and trying to see the difference according to age cate…
crossed random effects with binomial dataGreeting Experts, I am using Stata to create and analyze a mixed effect model for my data. I tested…
Combine string variables to make one idHi, I would like to combine string variables to make one id for each variable. The dataset looks l…
Overlaying many (a lot of) points in spmapDear all I am trying to visualize poor access to broadband services in Denmark and have data that co…
Manual -xtprobit, fe- and -xtoprobit, fe-?Dear listers, after estimating fixed effect regressions for an outcome with a limited number of val…
Subscribe to:
Post Comments (Atom)
0 Response to Does minbound run with logs?
Post a Comment