Hi Statalist,
I'm porting a couple R scripts to Stata and have hit a roadblock. I have been unable to replicate R's pnorm() function in Stata. I've searched this forum, Stata documentation, and the Web to no avail.
R has a dnorm() function that “returns the value of the probability density function (pdf) of the normal distribution” and appears to be the same as Stata’s normalden()
Example:
R: dnorm(-0.2231436, -0.1682927, 0.1931885) returns 1.983462
Stata: normalden(-0.2231436, -0.1682927, 0.1931885) returns 1.9834621
R’s pnorm() function “returns the value of the cumulative density function (cdf) of the normal distribution” and I haven't found a way to replicate it in Stata.
Using the same value, mean, and SD as above…
R: pnorm(-0.2231436, -0.1682927, 0.1931885) returns 0.3882342
Stata: I’ve had no luck.
Do any Statalisters know how to find the value of the CDF of the normal distribution?
Thank you,
Marc Peterson
Related Posts with Replicate R's pnorm function
DCC-GARCH model commandsDear Statalist, I am doing my dissertation now about the contagion between return prices: UK and US…
New Package: respThis concerns people, who are working with the Activity Index (AI), Relative Patent Activity (RPA), …
three-year moving sumDear Statalist I have a yearly dataset of chinses non-financial listed firms from (2010-2017), I wa…
How to solve a problem of XSMLE that requires strongly balanced panel data without missing valuesDear everyone, I'm estimating spatial panel data models using XSMLE command. This command requires …
RDD with fractional dependent variableDear Stata Community I use the RDD STATA package provided by Calonico, Cattaneo and Titiunik (2015)…
Subscribe to:
Post Comments (Atom)
0 Response to Replicate R's pnorm function
Post a Comment