[R] VGAM package : Frechet distribution - 2 parameter estimation

Michael Dewey info at aghmed.fsnet.co.uk
Thu Nov 6 10:24:58 CET 2014



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
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
>
>
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2015.0.5557 / Virus Database: 4189/8518 - Release Date: 11/05/14
>
>

-- 
Michael
http://www.dewey.myzen.co.uk



More information about the R-help mailing list