Displaying 1 result from an estimated 1 matches for "poismle".
Did you mean:
poise
2006 Mar 08
2
fitting a distribution using glm
it is easy to fit a distribution using fitdistr
poisdata <- rpois(n = 100, lambda = 2)
poismle <- fitdistr(poisdata, "Poisson")
poismle
but i would like to know whether its possible to get an identical result
using glm. I use
poistab <- data.frame(table(poisdata))
colnames(poistab) <- c("width","freq");
poistab[,"width"] <- as.numeric(po...