Displaying 20 results from an estimated 4000 matches similar to: "Poisson and neg. bin. regression with random effects"
2005 Dec 02
1
Zero-inflated neg.bin. model and pscl package
Dear list,
I'm currently trying to develop a model to assess clam yield potential in a
lagoon. I'm using the zeroinfl function of the pscl package to fit a
Zero-inflated negative binomial model, given the high occurrence of zero
counts.
I don't understand from the sentence in the pscl guide "Zero-inflated count
models are a type of two-component mixture model, with a component
2005 Jun 30
1
Dispersion parameter in Neg Bin GLM
Hi,
Can someone tell me if it is possible to set the dispersion parameter constant when fitting a negative binomial glm in R? I've looked at the documentation and can't find the appropriate argument to pass.
In STATA I can type: nbreg depvar [indepvar...], offset(offset) dispersion(constant).
Thank you
[[alternative HTML version deleted]]
2009 Apr 13
2
Question on zero-inflated Poisson count data with repeated measures design - glmm.ADMB
Dear R community,
I have some questions regarding the analysis of a zero-inflated count dataset and repeated measures design.
The dataset is arranged as follows :
Unit of analysis: point - these are points were bird were counted during a certain amount of time. In total we have about 175 points. Each point is located within a certain habitat fragment (here: "site"= A-B-C-D-..., in
2006 Nov 06
4
neg-bin clustered analysis in R?
Dear All,
I'm analysing a negative binomial dataset from a population-based
study. Many covariates were determined on household level, so all
members of a household have the same value for those covariates.
In STATA, there seems to be an option for 'clustered analysis' for
neg-bin regression. Does an equivalent exist for R(MASS)'s glm.nb or a
comparable function?
Many thanks for
2005 Jun 30
1
RE : Dispersion parameter in Neg Bin GLM
Edward, you also can use the package aod on CRAN, see the help page of the function negbin.
Best
Matthieu
An example:
> library(aod)
> data(dja)
> negbin(y ~ group + offset(log(trisk)), ~group, dja, fixpar = list(4, 0))
Negative-binomial model
-----------------------
negbin(formula = y ~ group + offset(log(trisk)), random = ~group,
data = dja, fixpar = list(4, 0))
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
2010 Nov 15
2
Zero truncated Poisson distribution & R2WinBUGS
I am using a binomial mixture model to estimate abundance (N) and
detection probability (p) using simulated count data:
-Each site has a simulated abundance that follow a Poisson
distribution with lambda = 5
-There are 200 simulated sampled sites
-3 repeated counts at each site
- only 50 percent of the animals are counted during each count (i.e,
detection probability p =0.5, see codes)
We removed
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
2006 Aug 29
1
Bootstraping for groups and subgroups and joing with other table
Dear R-experts,
I have a table with following collumns: State, SamplePlot, Species and BodySize. I sampled bird species at 34 SamplePlots and 5 States (regions) monthly during two years. On each bird record I measured bodysize and identified the species. So I have many records of each species (about 150 species) at each SamplePlot and each Region (State).
Now I would like bootstrap
2006 Sep 17
2
Excluding columns from dataframe and selecting row records
Dear R-friends,
I have to simple questions. First I would like to exclude some columns from a dataframe and after I need select rows that satisfy some conditions.
My data frame looks like
Region Species Bodysize Weigth Age
Africa Sp1 10.2 20 2
Africa Sp2 12.2 12 2
Africa Sp3 15.3 18 3
Africa Sp4 11.5 40 4
Brazil Sp1 10.2 40 3
Brazil Sp2 22.2 32 2
Brazil Sp3 12.3
2003 Apr 08
1
truncated poisson in glm / glmmPQL
Hi
I'm a postgrad in ecology, and have recently started to use R. I'm planning
to model various sets of animal abundance (i.e. count) data in relation to
habitat data using glm's and/or glmmPQL's. However, some of my potential
response variables have many zeros. From what I gather the "family = ..."
option in the command line does not allow for the direct
2013 Sep 19
3
lattice: double y - problem changing axis color after doubleYScale
Hi,
I have had some troubles using doubleYScale. No matter what I try, I cant manage to change the color of the y-axis in the end. I have to produce a black and white plot. There is also something I do not understand regarding fontfamilyj="serif" when using it in:
strip=strip.custom()
Maybe someone has a better idea for defining which line and dots belong to which y-axis when not using
2010 Jan 22
2
sorted reshaping?
dear R wizards:? I am wrestling with reshape.? I have a long data set
that I want to convert into a wide data set, in which rows are firms
and columns are years.
> summary(rin)
firm fyear sim1
Min. :1004.00 Min. :1964.0 Min. : -1.00000
1st Qu.:1010.00 1st Qu.:1979.0 1st Qu.: -0.14334
Median :1016.00 Median :1986.0 Median : 0.00116
Mean
2011 Jun 27
1
Neg Binomial In GEE
Hi, I want to fit a GEE with a negative binomial distribution. I have uesd
already a poisson glm and then neg binommial to deal with alot of
dispersion. In my neg binomial residuals i have some patterns so i have
implemented a GEE, but only with a poisson family as i couldnt with neg
binomial. However the residual patterns in fact look worse here. When i
try and put neg binomial family it
2007 Nov 06
0
Discrepancy of Neg. Binomial Estimation in R
Dear all,
I have a puzzle regarding the estimation of Neg. Binomial event count
model in R. I would greatly appreciate if anyone could shed some light
on my puzzle.
Using the glm.nb command, or the zelig command developed by Gary King
et. al., I obtain the same point estimates in R as well as in Stata.
However, if I write my own likelihood function to estimate a neg.
binomial event count
2014 Nov 23
3
[Bug 86618] New: [NV96] neg modifiers not working in MIN and MAX operations
https://bugs.freedesktop.org/show_bug.cgi?id=86618
Bug ID: 86618
Summary: [NV96] neg modifiers not working in MIN and MAX
operations
Product: Mesa
Version: git
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/DRI/nouveau
2005 Jan 30
0
Testing Poisson GLMs with independent data: what's the Right Thing To Do?
Folks, my question is not R-specific, but I've struck out twice on
sci.stat.consult, so I'm turning to the R community. Even if it's a silly
question, I expect that someone present will probably tell me so...
I have been using multiple Poisson GLMs and similar count-re?gression models
to analyse forest songbird abundance data. Many of the spe?cies-level models
seem to fit the data
2014 Nov 23
0
[PATCH] nv50/ir: set neg modifiers on min/max args
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=86618
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nv50.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nv50.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nv50.cpp
index 077eba8..3048f3d 100644
---
2011 Oct 13
2
GLM and Neg. Binomial models
Hi userRs!
I am trying to fit some GLM-poisson and neg.binomial. The neg. Binomial
model is to account for over-dispersion.
When I fit the poisson model i get:
(Dispersion parameter for poisson family taken to be 1)
However, if I estimate the dispersion coefficient by means of:
sum(residuals(fit,type="pearson")^2)/fit$df.res
I obtained 2.4. This is theory means over-dispersion since
2004 Sep 18
5
possible libogg bug holding up Ogg FLAC
I wish I would have come across this in time for the libogg-1.1.1
release... Maybe I'm doing something wrong but here it is.
One FLAC compressed frame becomes one packet when encapsulated in
Ogg, and FLAC packets can be much larger than the nominal 4k page
size. For CD audio they are usually 10-15Kbytes. Imagine this
Ogg stream where the lines denote page boundaries and the x's
are one