Skip to content
Prev 301453 / 398503 Next

Integrate(dnorm) with different mean and standard deviation help

On Jul 26, 2012, at 10:06 AM, FJ M wrote:

            
Wouldn't most statisticians instead use the more accurate and  
undoubtedly faster:

     pnorm(1.96, mean=2, sd=1) - pnorm(-1.96, mean=2, sd=1)

... or p_xxx where _xxx is distribution of interest?

(And I do not see that every help page needs a worked example of the  
proper use of the 'dots' argument. That is a basic R lesson and it is  
only by chance that you have needed to learn it in the context of  
integrate(). A large fraction of other functions offer that facility.  
You might review the material you used when learning R to see at what  
point you skimmed over that crucial topic too quickly. )