Displaying 20 results from an estimated 500 matches similar to: "ZINB by Newton Raphson??"
2010 Jun 05
1
(no subject)
Dear Sirs
First herewith I'll introduce myself. My name is Kristiono, I want ask you to help me how to get ZINB (Zero Inflated Negative Binomial) regression modeling step by step.
Anyway, I get some trouble to get step by step about
1. How to get the log likelihood function of ZINB (step by step)
2. How to get first derivative, second derifative to get MLE by Newton Raphson (step by
2010 Jun 21
0
Re ZINB by Newton Raphson??
Dear Mr.Zeileis & all.
(1) Thx for your reply. Yes, I am talk about the function zeroinfl() from the package "pscl". I want to use Newton Raphson to get parameter estimation ZINB, so I try this:
----------------------------------------------------------------------------------------------------------------------------------
> zinb <- zeroinfl(y
2010 Jun 22
1
Subject: Re ZINB by Newton Raphson??
I have not included the previous postings because they came out very strangely on my mail
reader. However, the question concerned the choice of minimizer for the zeroinfl()
function, which apparently allows any of the current 6 methods of optim() for this
purpose. The original poster wanted to use Newton-Raphson.
Newton-Raphson (or just Newton for simplicity) is commonly thought to be the
2011 Feb 04
1
Please stop all e-mail
Dear "r-help"
I don't want to receive again every e-mail about [R] in my address e-mail
(cahyo_kristiono@yahoo.com), because it is cause my inbox so full quickly. So I
need your help to stop every e-mail about [R] in my address.
Thank you so much
Regards
CK
[[alternative HTML version deleted]]
2009 Jul 18
2
Zinb for Non-interger data
Sorry bit of a Newbie question, and I promise I have searched the forum
already, but I'm getting a bit desperate!
I have over-dispersed, zero inflated data, with variance greater than the
mean, suggesting Zero-Inflated Negative Binomial - which I attempted in R
with the pscl package suggested on
http://www.ats.ucla.edu/stat/R/dae/zinbreg.htm
However my data is non-integer with some pesky
2012 Jul 13
1
Vuong test
Dear All,
I am using the function vuong from pscl package to compare 2 non nested models NB1
(negative binomial I ) and Zero-inflated model.
NB1 <- glm(, , family = quasipoisson), it is an
object of class: "glm" "lm"
zinb <-
zeroinfl( dist = "negbin") is an object of class: "zeroinfl"
when applying vuong
function I get the following:
vuong(NB1,
2012 Dec 10
1
Marginal effects of ZINB models
Dear all,
I am modeling the incidence of recreational anglers along a stretch of
coastline, and with a vary large proportion of zeros (>80%) have chosen to
use a zero inflated negative binomial (ZINB) distribution. I am using the
same variables for both parts of the model, can anyone help me with R code
to compute overall marginal effects of each variable?
My model is specified as follows:
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.
2004 Feb 10
1
generate random sample from ZINB
I want to generate 1,000 random samples of sample size=1,000 from ZINB.
I know there is a rnegbin() to generate random samples from NB, and I know
I can use
the following process:
do i=1 to 1000
n=0
do i=1 to 1000
if runi(1)>0.1 then x(i) = 0; else
x(i)=rnegbin();
n=n+1;
if n>1000 then stop;
end;
output;
end;
Anybody can help me out with the R code?
Thanks very much ahead of time.
2010 Apr 12
1
zerinfl() vs. Stata's zinb
Hello,
I am working with zero inflated models for a current project and I am
getting wildly different results from R's zeroinfl(y ~ x, dist="negbin")
command and Stata's zinb command. Does anyone know why this may be? I find
it odd considering that zeroinfl(y ~ x, dist="poisson") gives identical to
output to Stata's zip function.
Thanks,
--david
[[alternative
2018 Apr 09
2
Warning en modelo ZINB
Buenas tardes,
Estoy estimando un modelo binomial negativo de ceros inflados (ZINB)
utilizando el comando zeroinfl() del paquete pscl. Al ejecutarlo me da el
siguiente aviso:
Warning: glm.fit: fitted probabilities numerically 0 or 1 occurred
¿Sabéis que significa y si puedo usar el modelo aún con ese aviso? ¿Los
coeficientes son fiables?
Muchas gracias,
Miriam
2012 Dec 14
1
Beta-coefficients for ZINB model
Dear users,
Does anyone have any idea how to generate standardised beta coefficients
for a ZINB model in R to compare which explanatory variables are having the
greatest impact on the dependent variable?
Thanks,
Jeremy
[[alternative HTML version deleted]]
2016 Apr 18
1
ZINB multi-level model using MCMCglmm
Hi,
I am Olga Viedma. I am running a Zero-inflated negative binomial (ZINB) multi-level model using MCMCglmm package. I have a doubt. Can I use the "Liab" outputs as fitted data, instead of the predicted values from "predict"? The liab outputs fit very well with the observed data, whereas the predicted values are so bad.
Thanks in advance,
Olga Viedma
D . Olga
2018 Apr 09
2
Warning en modelo ZINB
Muchas gracias por la respuesta. He mirado y los coeficientes no son altos
pero sí tengo una gran cantidad de ceros en la variable dependiente (más
del 90%). Sin embargo, al incluir otro tipo de variables independientes no
me da ese aviso, dejando la misma variable dependiente.
¿Cómo podría utilizar stan/rstan de forma sencilla para diagnosticar el
modelo?
Muchas gracias
El Lun, 9 de Abril de
2018 Apr 09
3
Warning en modelo ZINB
¿Quieres decir que para un nivel de una variable categorica todas las
observaciones de la variable respuesta sean ceros?
Gracias
El Lun, 9 de Abril de 2018, 19:59, Carlos J. Gil Bellosta escribió:
> ¿Podría ser que para algún nivel de alguna variable independiente
> categórica solo hubiese ceros? En ese caso, casi seguro, aparecería ese
> tipo de warning.
>
> El lun., 9 abr. 2018 a
2018 Apr 09
2
Warning en modelo ZINB
Hola de nuevo Carlos, he probado a quitar esa variable categórica y me
sigue dando el aviso...
El Lun, 9 de Abril de 2018, 20:17, Carlos J. Gil Bellosta escribió:
> Si, creo que el motivo del warning puede ser ese. Es hipotético, pero
> plausible. Sobre todo cuando tienes más de un 90% de ceros.
>
> El coeficiente de ese nivel para el modelo de la mixtura (ceros vs
> binomial
>
2018 Apr 18
2
Interpretar intercepto de modelo ZINB
Buenas tardes,
¿Cómo interpretarías el intercepto que da R en un modelo de ceros
inflados? Por un lado en la parte de conteo tengo un intercepto de -4.2 y
en la parte de ceros de 102, ambos salen significativos (***). ¿Qué me
dirían?
Gracias
2008 Jun 05
1
GAM hurdle models
Hello,
I have been using mgcv to run GAM hurdle models, analyzing
presence/absence data with GAM logistic regressions, and then analyzing
the data conditional on presence (e.g. without samples with no zeros)
with GAMs with a negative binomial distribution.
It occurs to me that using the negative binomial distribution on data
with no zeros is not right, as the negative binomial allows zeros.
2011 May 23
1
Interpreting the results of the zero inflated negative binomial regression
Hi,
I am new to R and has been depending mostly on the online tutotials to learn
R. I have to deal with zero inflated negative binomial distribution. I am
however unable to understand the following example from this link
http://www.ats.ucla.edu/stat/r/dae/zinbreg.htm
The result gives two blocks.
*library(pscl)
zinb<-zeroinfl(count ~ child + camper | persons, dist = "negbin", EM =
2010 Feb 14
2
Estimated Standard Error for Theta in zeroinfl()
Dear R Users,
When using zeroinfl() function to fit a Zero-Inflated Negative Binomial (ZINB) model to a dataset, the summary() gives an estimate of log(theta) and its standard error, z-value and Pr(>|z|) for the count component. Additionally, it also provided an estimate of Theta, which I believe is the exp(estimate of log(theta)).
However, if I would like to have an standard error of Theta