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
separate regression of subgroupsHope you are enjoying the coziness of the weekend or early Monday already!. I have a data set with t…
arellano-bover/blundell-bondHello people, I have a panel data of 9 firms for a period of 11 years with no missing data. In 2017,…
Request for help- interpreting results post margins.Hello everyone, I am using probit model in Stata 16.1 to identify [dependent var] whether a firm ch…
State-of-the-art weighting methods when analyzing multiple surveys at the same timeDear Statalist: This is a bit of a longshot, but I was wondering if anyone had good references for …
Generate variable to subtract current value from previous valueHello. I am working with the NYT COVID-19 data. The data presents two years worth of COVID-19 case a…
Subscribe to:
Post Comments (Atom)
0 Response to Euler's Number in Stata
Post a Comment