similar to: Plotting the density of a Poisson Regression

Displaying 20 results from an estimated 60000 matches similar to: "Plotting the density of a Poisson Regression"

2010 Feb 08
0
Poisson and neg. bin. regression with random effects
Hi there, I have relative abundance data for 13 mammal species that I collected at various sites that ranged in road density. I'm trying to determine the effect of road density on animal abundance across body sizes. For most species, I have data that was collected in one year but for a few species I have two years of complete data, and would like to use both. Since I have count data, I'm
2011 Mar 21
2
Part of density plot not showing up
I am doing a histogram with 2 superimposed densities. However, the density of one of the graphs is not coming out..its being erased.. Any ideas on how to fix this problem? -- Thanks, Jim. [[alternative HTML version deleted]]
2009 Jun 08
3
Plotting two regression lines on one graph
Hi! I have fitted two glms assuming a poisson distribution which are: fit1 <- glm(Aids ~ Year, data=aids, family=poisson()) fit2 <- glm(Aids ~ Year+I(Year^2), data=aids, family=poisson()) I am trying to work out how to represent the fitted regression curves of fit1 and fit2 on the one graph. I have tried: graphics.off() plot(Aids ~ Year, data = aids) line(glm(Aids ~ Year,
2011 Mar 20
3
Part of a density plot
Suupose I have y <- rbeta(10000, 2, 5) and I only want to see only the density plot from x = 0 to x = 1 How do I do this? -- Thanks, Jim. [[alternative HTML version deleted]]
2009 Sep 28
0
question on a warning(?) message from glm poisson regression
Hello, I got the following message after fitting the poisson regression using the glm function. Are the results (coefficient estimates, their stderr, deviance, predicted values...) reliable? Can I still go on and interpret them? How much caution should I exercise for these results with this message? ########## > mmm6 <-glm(freq~x+y+x.2+y.2+x.3+y.3+x.4+y.4+x.5+y.5+x.6+y.6+xy
2008 Dec 16
1
Prediction intervals for zero inflated Poisson regression
Dear all, I'm using zeroinfl() from the pscl-package for zero inflated Poisson regression. I would like to calculate (aproximate) prediction intervals for the fitted values. The package itself does not provide them. Can this be calculated analyticaly? Or do I have to use bootstrap? What I tried until now is to use bootstrap to estimate these intervals. Any comments on the code are welcome.
2007 Jun 13
1
Normal and Poisson tail area expectations in R
I am interested in R functions for the following integrals / sums (expressed best I can in text) - Normal: G_u(k) = Integration_{Lower limit=k}^{Upper limit=infinity} [(u -k) f(u) d(u)], where where u is N(0,1), and f(u) is the density function. Poisson: G(lambda,k) = Sum_{Lower limit=k}^{Upper limit=infinity} [(x-k) p(x, lambda)] where P(x,lambda) is the Poisson prob function with parameter
2004 Nov 02
1
Robust Poisson regression
Hola! Anybody knows if there exists somewhere in R some implementation of robust Poisson regression, where robust is taken in the sense as usen in rlm(MASS). I found something in the package wle, but only for the Poisson distribution, not for regression. For the moment I try to use linear models with the square-root transformation, and rlm. Kjetil -- Kjetil Halvorsen. Peace is the most
2007 Jul 31
2
choosing between Poisson regression models: no interactions vs. interactions
R gurus, I'm working on data analysis for a small project. My response variable is total vines per tree (median = 0, mean = 1.65, min = 0, max = 24). My predictors are two categorical variables (four sites and four species) and one continuous (tree diameter at breast height (DBH)). The main question I'm attempting to answer is whether or not the species identity of a tree has
2012 Oct 14
2
Poisson Regression: questions about tests of assumptions
I would like to test in R what regression fits my data best. My dependent variable is a count, and has a lot of zeros. And I would need some help to determine what model and family to use (poisson or quasipoisson, or zero-inflated poisson regression), and how to test the assumptions. 1) Poisson Regression: as far as I understand, the strong assumption is that dependent variable mean = variance.
2008 Mar 02
1
Poisson regression in R
I have these questions: (1) Use Poisson regression to estimate the main effects of car, age, and dist (each treated as categorical and modelled using indicator variables) and interaction terms. (2) It was determined by one study that all the interactions were unimportant and decided that age and car could be treated as though they were continuous variables. Fit a model incorporating these
2011 Feb 17
1
3 questions about the poisson regression of contingency table
Hi all: I have 3 questions about the poisson regression of contingency table. Q1¡¢How to understand the "independent poisson process"as many books or paper mentioned? For instance: Table1 ------------------------------------------- treat caner non-cancer sum ------------------------------------------- treat1 52(57.18) 19(13.82) 71 treat2
2003 Oct 29
1
One inflated Poisson or Negative Binomal regression
Hello I am interested in Poisson or (ideally) Negative Binomial regression with an inflated number of 1 responses I have seen JK Lindsey's fmr function in the gnlm library, which fits zero inflated Poisson (ZIP) or zero inflated negative binomial regression, but the help file states that for ' Poisson or related distributions the mixture involves the zero category'. I had thought
2010 May 29
0
plotting density in same plot in loop iteration
Hi R-mailing list I would have the following set-up below with a simplified data-frame. Through a loop which includes certain criteria for the densities I would like to plot the different density-distributions in the same plot. Of course I hope I don't do any mistakes with all the indexes of the dataframe. All I would like to have is the different densities in the same plot with a general
2009 Dec 11
0
Calculation of slope for Poisson regression
Hello, I am analyzing time-series data for multiple songbird species in northern Canada where data were collected at 3 point count stations within a stand (~150 stations) visited twice a year and with multiple observers. I am using a linear mixed effects model (lme4) that includes year as a fixed effect and observer, station nested within stand (to account for spatial auto-correlation) and visit
2012 Jan 14
2
Estimate the average abundance using Poisson regression with a log link.
Hello, please excuse the simplicity of this question as I am not very good with stats. I am taking a class, using R which I am learning at the same time, and the questions asks us to "Estimate the average abundance using Poisson regression with a log link". I can estimate the abundance from "x", but I can seem to figure out how to get the average abundance in this method. Any
2008 Nov 25
3
plotting density for truncated distribution
I am using density() to plot a density curves. However, one of my variables is truncated at zero, but has most of its density around zero. I would like to know how to plot this with the density function. The problem is that if I do this the regular way density(), values near zero automatically get a very low value because there are no observed values below zero. Furthermore there is some density
2008 Jul 29
2
Help interpreting density().
I issue the following: > d <- density(rnorm(1000)) > d and get: Call: density.default(x = rnorm(1000)) Data: rnorm(1000) (1000 obs.); Bandwidth 'bw' = 0.2235 x y Min. :-3.5157 Min. :2.416e-05 1st Qu.:-1.6892 1st Qu.:1.129e-02 Median : 0.1373 Median :7.267e-02 Mean : 0.1373 Mean :1.367e-01 3rd Qu.: 1.9639
2010 Jan 16
0
Quasi-Poisson regression - using parameter estimates for QAICc
Quasi-Poisson regression - using parameter estimates for QAICc Hello, I am using lmer (package lme4), for a GLMM, where I am modeling overdispered data with 1 random effect and several fixed effects. I want to use QAICc for my model selection, however I have 2 concerns 1) I don't know how to properly estimate the overdispersion parameter (c_hat), which is needed to calculate QAICc. I
2012 Jul 06
4
Poisson Ridge Regression
Dear everyone I'm dealing with a problem related to Poisson Ridge Regression. If anyone can help me in this regard by telling if any changes in the source code of "glm.fit" may help -- Regards Umesh Khatri