Re: [R] Integration + Normal Distribution + Directory Browsing Processing Questions

2007-01-22 Thread Matthias Kohl
Hi Nils, I would say, pnorm is faster and has a higher precision. Best, Matthias - original message Subject: Re: [R] Integration + Normal Distribution + Directory Browsing Processing Questions Sent: Mon, 22 Jan 2007 From: Nils Hoeller[EMAIL PROTECTED] Thank you, both work

Re: [R] Integration + Normal Distribution + Directory Browsing Processing Questions

2007-01-22 Thread Dimitris Rizopoulos
+ Normal Distribution + Directory Browsing Processing Questions Sent: Sun, 21 Jan 2007 From: Dimitris Rizopoulos[EMAIL PROTECTED] you can use the `...' argument of integrate, e.g., integrate(dnorm, 0, 1) integrate(dnorm, 0, 1, mean = 0.1) integrate(dnorm, 0, 1, mean = 0.1, sd = 1.2) look

Re: [R] Integration + Normal Distribution + Directory Browsing Processing Questions

2007-01-22 Thread Erich Neuwirth
Nils Hoeller wrote: for example. BUT what can I do for dynamic m and sd? I want something like integrate(dnorm(,0.6,0.15),0,1), with the first dnorm parameter open for the integration but fixed m and sd. integrate(function(x)dnorm(x,0.1,1.2), 0, 1) is a way of fixing additional

[R] Integration + Normal Distribution + Directory Browsing Processing Questions

2007-01-21 Thread Nils Hoeller
Hi everyone, I am new to R, but it's really great and helped me a lot! But now I have 2 questions. It would be great, if someone can help me: 1. I want to integrate a normal distribution, given a median and sd. The integrate function works great BUT the first argument has to be a function so

Re: [R] Integration + Normal Distribution + Directory Browsing Processing Questions

2007-01-21 Thread Dimitris Rizopoulos
you can use the `...' argument of integrate, e.g., integrate(dnorm, 0, 1) integrate(dnorm, 0, 1, mean = 0.1) integrate(dnorm, 0, 1, mean = 0.1, sd = 1.2) look at ?integrate for more info. I hope it helps. Best, Dimitris Dimitris Rizopoulos Ph.D. Student Biostatistical Centre School of

Re: [R] Integration + Normal Distribution + Directory Browsing Processing Questions

2007-01-21 Thread Matthias Kohl
Hi, why don't you use pnorm? E.g., pnorm(1, mean = 0.1, sd = 1.2) - pnorm(0, mean = 0.1, sd = 1.2) Matthias - original message Subject: Re: [R] Integration + Normal Distribution + Directory Browsing Processing Questions Sent: Sun, 21 Jan 2007 From: Dimitris Rizopoulos[EMAIL

Re: [R] Integration + Normal Distribution + Directory Browsing Processing Questions

2007-01-21 Thread Charilaos Skiadas
On Jan 21, 2007, at 2:27 PM, Nils Hoeller wrote: Now I want R to read.table all files within a given directory and process them one by the other. ?list.files ?for Haris __ R-help@stat.math.ethz.ch mailing list

Re: [R] Integration + Normal Distribution + Directory Browsing Processing Questions

2007-01-21 Thread Nils Hoeller
Thank you, both work fine. Why is pnorm to prefer? Nils Matthias Kohl schrieb: Hi, why don't you use pnorm? E.g., pnorm(1, mean = 0.1, sd = 1.2) - pnorm(0, mean = 0.1, sd = 1.2) Matthias - original message Subject: Re: [R] Integration + Normal Distribution + Directory