[R] haerdle package

Paul Stansell paul at outsider.civ.hw.ac.uk
Thu Jun 14 18:26:36 CEST 2001


Hi,

Can anyone tell me what's wrong with the function below (I'm new to R)


  generator <- function(n, seed)
  {
  .Random.seed <<- seed
  data.1 <- rnorm(n)-1
  data.2 <- rnorm(n)+2
  data.3 <- runif(n) <= 0.6
  data <- data.1*data.3 + data.2*(1-data.3)
  data
  }
  seed <- c(61,40,6,40,55,2,44,30,20,56,41,1)
  dat.mixed <- sort(generator(100,seed))
Error in rnorm(n) : .Random.seed[1] is NOT a valid RNG kind (code)
  rm(generator)


This function is called dat.mixed.R and is from the R package called
haerdle_1.0-1.tar.gz and contains functions from Wolfgang Haerdle's book
called "Smoothing Techniques with Implementation in S", Springer-Verlag,
1991.

Also, why is this package not listed in the CRAN.
I got haerdle_1.0-1.tar.gz from
ftp://ftp-stat.uni-klu.ac.at/pub/R/contrib and it installed okay
(after I had removed the Makefile in haerdle/src/).

Thanks for your help,

Paul Stansell



-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list