Re: [R] sampling from normal distribution

2010-10-03 Thread Duncan Murdoch
On 03/10/2010 6:38 PM, solafah bh wrote: Hello If i want to resampl from the tails of normal distribution , are these commans equivelant?? upper tail:qnorm(runif(n,pnorm(b),1)) if b is an upper tail boundary or upper tail:qnorm((1-p)+p(runif(n)) if p is the probability of each interval

Re: [R] sampling from normal distribution

2010-10-03 Thread Daniel Nordlund
> -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf Of solafah bh > Sent: Sunday, October 03, 2010 3:39 PM > To: R help mailing list > Subject: [R] sampling from normal distribution > > Hello > If i wan

[R] sampling from normal distribution

2010-10-03 Thread solafah bh
Hello If i want to resampl from the tails of normal distribution , are these commans equivelant??   upper tail:qnorm(runif(n,pnorm(b),1))  if b is an upper tail boundary   or   upper tail:qnorm((1-p)+p(runif(n))  if p is the probability of each interval (the observatins are divided to intervals)