Dear Ms. Gobin,

There would appear to be a typo in the package manual that appears on CRAN. Doing ?Frechet (it would be nice to have this aliased also to "frechet") points you immediately to frechet. With "frechet2" substituted for "frechet" your code, everything works.

cheers,

Rolf Turner

On 06/11/14 22:34, Katherine Gobin wrote:
Dear Mr Michael,

Thanks a lot for your guidance. The pdf file describing VGAM package has 
mentioned 'frechet' in the example, so I got the error.

Regards
Katherine


On Thursday, 6 November 2014 2:54 PM, Michael Dewey <i...@aghmed.fsnet.co.uk> 
wrote:





On 06/11/2014 06:04, Katherine Gobin wrote:
Dear R forum,

I am trying to execute following code (Page no 259 - VGAM.pdf)

# 
.........................................................................................................................

library(VGAM)

set.seed(123)
fdata <- data.frame(y1 = rfrechet(nn <- 1000, shape = 2 + exp(1)))
with(fdata, hist(y1))
fit2 <- vglm(y1 ~ 1, frechet, data = fdata, trace = TRUE)

# 
.........................................................................................................................


Is it not called frechet2?


However, I receive following error

Error in vglm(y1 ~ 1, frechet, data = fdata, trace = TRUE) :
    object 'frechet' not found


Earlier there used to be a function called "frechet3" which I guess has been 
withdrawn by VGAM.

Kindly guide

Katherine

--
Rolf Turner
Technical Editor ANZJS

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to