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
Difference in difference on a cross sectional data set with small number of cluster groupHi, it is on an urgent basis I am running the following regression: with and without mean group ave…
Demand estimation using Berry's modelDear all, I am working on demand estimation for automobiles. Applying Berry's model. My dependent v…
Matrix operationsHi all, I am trying to perform a simple simulation on STATA. In particular I am constructing a vect…
Need help to test differences between datasetHello, I am doing my thesis but i could use some help with the statistical part. I combined two dat…
Residual variance from the market model for multiple companiesHi all, For my Master's thesis I have to calculate 'Market Model Adjusted Return' with market model…
Subscribe to:
Post Comments (Atom)
0 Response to Replicate R's pnorm function
Post a Comment