Hello,
I am trying to define a program with:
program define MC_3, rclass
version 15
clear
drop _all
set obs 200
gen x = runiform(0,5)
gen U = rnormal(0,100)
gen m = e^x - 4*(x^2)
gen Y = m+U
end
e is supposed to be Euler's number but it shows up as 'e not found'. How can I distinguish between e as Euler's number and e as a return command?
Thanks in advance,
Rayne
Related Posts with Euler's Number in Stata
Checking package consistencyDear All, when a user-written package is added to Stata with Code: net from SOMEURL net install SO…
Calculations based on rankHi everyone, I'm an undergraduate student studying economics and am having trouble with Stata. I'm …
adjustrcspline and plotting axis/limitsHi all. I've been hunting online for a while now but can't seem to find a good solution for this yet…
Referring to matrix columns and rowsDear All, It should be fairly simply, but I am very confused as to how I should refer to a location …
melogit, xtmelogit, meglm with Bernoulli family to include survey weights in the modelDear colleagues, Does any one come across with an aides on how to include a survey weight into the …
Subscribe to:
Post Comments (Atom)
0 Response to Euler's Number in Stata
Post a Comment