Hello everyone!
I would like to draw more mathematical functions on Stata.
I found following functions are very usefull.
twoway (function normalden(x), range(-4 4))(function normal(x), range(-4 4))
or
range x -4 4 1000
gen ynorm= 1/sqrt(2 * _pi) * exp(-1/2 * x^2)
integ y x, gen(Synorm)
gen ylogit = exp(x)/(1+exp(x))^2
integ ylogit x, gen(Sylogit)
twoway (line ynorm Synorm x) (line ylogit Sylogit x)
However I would like to draw a kind of following functions to understand more mathematically.
twoway (function 1/sqrt(2 * _pi) * exp(-1/2 * x^2), range(-4 4))
So I need more mathematical functions to directly enter Stata including integral, sigma, differential and so on.
Do you have any solutions?
https://en.wikipedia.org/wiki/Integral
https://en.wikipedia.org/wiki/Cumula...ution_function
Related Posts with More mathematical functions like sigma & integral
Dynamic and No endogeneityI am working on panel data and I found none of the regressor to be Endogenous. But I found Lag of my…
Help with loop for rename functionHi all, I am a new user to STATA. I want to rename 12 different variables: Instead of coding 12 diff…
Meta-analysis of RCTsDear all,
I had a basic question pertaining to meta-analysis of RCTs.
If we have ATEs and CIs of th…
Two way clustering versus clustering on the interaction term?Suppose I want to cluster on country and year effects. Specifically, I am using reghdfe command but …
Calculate income household (=the total income of the members) in each householdI have a dataset with some variables: ID_I (individual id), ID_H (household id), J60 (total income).…
Subscribe to:
Post Comments (Atom)
0 Response to More mathematical functions like sigma & integral
Post a Comment