Displaying 20 results from an estimated 90 matches similar to: "Overdispersed poisson - negative observation"
2006 Jul 10
2
about overdispersed poisson model
Dear R users
I have been looking for functions that can deal with overdispersed poisson
models. According to actuarial literature (England & Verall, Stochastic Claims
Reserving in General Insurance , Institute of Actiuaries 2002) this can be handled through the
use of quasi likelihoods instead of normal likelihoods. However, we see them frequently
in this type of data, and we would like to
2000 Jul 24
1
scoping problems (PR#614)
I am resubmitting this to r-bugs, since Thomas Lumley indicates that it
might be an error:
On Wed, 5 Jul 2000, Thomas Lumley wrote:
> On Wed, 5 Jul 2000, halvorsen wrote:
>
> > Hola!
> >
> > I have the following simple function:
> >
> > > testcar
> > function(pow){
> > ob <- glm(Pound~CG+Age+Vage,data=car,weights=No,
> >
2005 Jun 16
1
mu^2(1-mu)^2 variance function for GLM
Dear list,
I'm trying to mimic the analysis of Wedderburn (1974) as cited by
McCullagh and Nelder (1989) on p.328-332. This is the leaf-blotch on
barley example, and the data is available in the `faraway' package.
Wedderburn suggested using the variance function mu^2(1-mu)^2. This
variance function isn't readily available in R's `quasi' family object,
but it seems to me
2006 Jan 14
2
initialize expression in 'quasi' (PR#8486)
This is not so much a bug as an infelicity in the code that can easily
be fixed.
The initialize expression in the quasi family function is, (uniformly
for all links and all variance functions):
initialize <- expression({
n <- rep.int(1, nobs)
mustart <- y + 0.1 * (y == 0)
})
This is inappropriate (and often fails) for variance function
"mu(1-mu)".
2009 Jan 20
1
Poisson GLM
This is a basics beginner question.
I attempted fitting a a Poisson GLM to data that is non-integer ( I believe
Poisson is suitable in this case, because it is modelling counts of
infections, but the data collected are all non-negative numbers with 2
decimal places).
My question is, since R doesn't return an error with this glm fitting, is it
important that the data is non-integer. How does
2001 Dec 18
2
Aranda-Ornaz links for binary data
Hi,
I would like apply different link functions from Aranda-Ordaz (1981)
family to large binary dataset (n = 2000). The existing links in glm for
binomial data (logit, probit, cloglog) are not adequate for my data, and I
need to test some other transformations.
Is it possible to do this in R? And how?
Thank you for your help,
/Sharon
2009 Nov 16
3
R-help
I have been trying to write a function for the following problem:
Suppose I have three vectors a,b,c of different lengths:
e.g. a=c(a1,a2,a3,...) where a[i] form the basis of our function variables:
if we define a table for example:
and define the fn(x) <-function{..sum(argument)..}
where x<-c(a,b,c) so that we can maximise fn(x) as:
2000 Nov 29
4
RPC exception: "Who are you failed (dce / rpc)"
Hello,
with OpenSSH_2.3.0p1 running in HP-UX 11.00 I noticed that the "SD
commands" (like "swcopy") produce the following error when being logged
in via SSH:
ERROR: RPC exception: "Who are you failed (dce / rpc)" 11/29/00
11:20:18 MET
Ideas?
Regards,
Ulrich
P.S. Not subscribed to the list
2005 Jun 17
0
glmmADMB: Mixed models for overdispersed and zero-inflated count data in R
Dear R-users,
Earlier this year I posted a message to this list regarding
negative binomial mixed models in R. It was suggested that
the program I had written should be turned into an R-package.
This has now been done, in collaboration with David Fournier
and Anders Nielsen.
The R-package glmmADMB provides the following GLMM framework:
- Negative binomial or Poisson responses.
- Zero-inflation
2006 Nov 13
1
stepAIC for overdispersed Poisson
I am wondering if stepAIC in the MASS library may be used for model
selection in an overdispersed Poisson situation. What I thought of doing
was to get an estimate of the overdispersion parameter phi from fitting
a model with all or most of the available predictors (we have a large
number of observations so this should not be problematical) and then use
stepAIC with scale = phi. Should this
2005 Jun 09
0
New package aod: Analysis of Overdispersed Data
Information on package 'aod'
Description:
Package: aod
Version: 1.1-2
Date: 2005-06-08
Title: Analysis of Overdispersed Data
Author: Matthieu Lesnoff <matthieu.lesnoff at cirad.fr> and Renaud
Lancelot <renaud.lancelot at cirad.fr>
Maintainer: Renaud Lancelot <renaud.lancelot at cirad.fr>
Depends: R (>=
2005 Jun 09
0
New package aod: Analysis of Overdispersed Data
Information on package 'aod'
Description:
Package: aod
Version: 1.1-2
Date: 2005-06-08
Title: Analysis of Overdispersed Data
Author: Matthieu Lesnoff <matthieu.lesnoff at cirad.fr> and Renaud
Lancelot <renaud.lancelot at cirad.fr>
Maintainer: Renaud Lancelot <renaud.lancelot at cirad.fr>
Depends: R (>=
2005 Sep 30
0
p-value for non-linear variable in overdispersed glm()
Dear all,
I am fitting an nonlinear glm() using optim() by first minimising
glm(resp~ var1 + var2, family=binomial, data=data)$deviance
where var1= exp(-a1*dist1), and var2= exp(-a2*dist2), where a1 and a2 are
parameters and dist1 and dist2 are independent variables.
Next, I calculate the value of var1 (and var2) by plugging in the value of
al1 (and al2) that minimises deviance,
and fit
2008 Aug 17
0
Error fitting overdispersed logistic regression: package dispmod
Hi all,
First, a quick thank you for R; it's amazing.
I am trying to fit models for a count dataset following the overdispersed logisitic regression approach outlined in Baggerly et al. (BMC Bioinformatics, 5:144; Annotated R code is given at the end of the paper) but R is returning an error with the data below. Any help in understanding or overcoming this obstacle is appreciated.
2011 Aug 27
1
Overdispersed GLM
Hi all,
I have the following data:
rep1_treat rep2_treat rep1_control rep2_control
2 3 4 5
100 20 98 54
0 1 2 3
23 32 27
2011 Aug 27
1
hopelessly overdispersed?
dear list!
i am running an anlysis on proportion data using binomial (quasibinomial
family) error structure. My data comprises of two continuous vars, body
size and range size, as well as of feeding guild, nest placement, nest
type and foragig strata as factors. I hope to model with these variables
the preference of primary forests (#successes) by certain bird species.
My code therefore looks
2002 Jun 06
1
generating overdispersed poisson & negative binomial data
I would like to try a simple parametric bootstrap, but unfortunately
(stupidly?) my models are "overdispersed" gams & glms.
I'm hoping for a function that generates overdispersed poisson or negative
binomial data with a given mean, scale (& shape parameter).
The loose definition I'm using is overdispersed poisson produces integer
values with variance=const*mean &
2010 Oct 25
2
Mixed-effects model for overdispersed count data?
Hi,
I have to analyse the number of provisioning trips to nestlings according to a number of biological and environmental factors. I was thinking of building a mixed-effects model with species and nestid as random effects, using a Poisson distribution, but the data are overdispersed (variance/mean = 5). I then thought of using a mixed-effects model with negative binomial distribution, but I have
2010 Jul 13
2
Checking for duplicate rows in data frame efficiently
I wrote something to check for duplicate rows in a data frame, but it is too inefficient. Is there a way to do this without the nested loops?
This code correctly indicates rows 1-7, 1-8, 2-9 and 7-8 are duplicates.
> m <- matrix(c(1,1,1,1,1, 2,2,2,2,2, 6,6,6,6,6, 3,3,3,3,3, 4,4,4,4,4, 5,5,5,5,5, 1,1,1,1,1, 1,1,1,1,1, 2,2,2,2,2, 7,7,7,7,7), ncol=5, byrow=TRUE)
> df <- data.frame(m)
2006 Jan 30
4
Logistic regression model selection with overdispersed/autocorrelated data
I am creating habitat selection models for caribou and other species with
data collected from GPS collars. In my current situation the radio-collars
recorded the locations of 30 caribou every 6 hours. I am then comparing
resources used at caribou locations to random locations using logistic
regression (standard habitat analysis).
The data is therefore highly autocorrelated and this causes Type