Skip to content

R commands

2 messages · Jameshutton25@aol.com, Ben Bolker

#
The first two are pretty basic:

  #1: x <- rnorm(20)
  #2: x[x<0] <- 0
  
  #3 is poorly defined.  Do you want the estimate of the mean and s.d. of 
the initial (non-truncated) distribution?  I think this might be doable, 
but someone (preferably you) would have to try to work out the details ... 
this is a statistical question, not an R coding question.

  which[x<=0]

  Ben Bolker
On Mon, 16 Dec 2002 Jameshutton25 at aol.com wrote: