Displaying 6 results from an estimated 6 matches for "indepvars".
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]]
2010 Sep 12
1
R-equivalent Stata command: poisson or quasipoisson?
...n be
obtained with the command
poisson depvar_ij ln(indepvar1_ij) ln(indepvar2_ij) ...
ln(indepvarN_ij), robust
I looked up Stata help for the command, to understand syntax and such:
www.stata.com/help.cgi?poisson
Which simply says that the command fits a Poisson regression of depvar
on indepvars. However, in my google-searching, I noticed that pseudo-
maximum-likelihood estimation is sometimes called 'quasi-maximum,' and
that R has a "quasipoisson" family that seems to allow for
overdispersion. So, am I missing something, or should I specify
"quasipoisson"...
2008 Oct 15
1
Forecasting using ARIMAX
Dear R-helpers,
I would appreicate if someone can help me on the transfer parameter in ARIMAX and also see what I am doing is correct.
I am using ARIMAX with 2 Exogeneous Variables and 10 years data are as follows:
DepVar Period, depVar, IndepVar1 Period, indepVar1, IndepVar2 Period, indepVar2
Jan 1998,708,Jan 1998,495,Jan 1998,245.490
Feb 1998,670,Feb 1998,421.25,Feb 1998,288.170
Mar
2019 Jun 04
3
Incluir un rango de varias variables explicativas a un modelo
...nombres de las variables son del tipo: x23 x25 x30, x301
x320, x80. Entonces me da este error:
Error in eval(predvars, data, env) : object 'pot24' not found. Debido a que
pot24 no existe, ya que de pot23 se brinca a pot30.
En Stata es algo muy simple de hacer, solo tengo que especificar gl
indepvars "x23-x80" y ya. En R no logro hacerlo.
¿Alguna otra sugerencia?
Gracias de antemano.
El lun., 3 de jun. de 2019 a la(s) 04:50, Carlos Ortega (
cof en qualityexcellence.es) escribió:
> Hola,
>
> Mira la función "*as.formula()*".
> Incluye un ejemplo muy parecido a...
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))
2019 Jun 02
3
Incluir un rango de varias variables explicativas a un modelo
Hola,
Quiero especificar una ecuación con varias variables explicativas de una
manera eficiente sin necesidad de escribir todas y cada una. Tengo un
conjunto de variables (junto con otras) dentro de una base de datos que se
llaman pot23 pot311 pot312 pot 316 pot317........... pot80. No
necesariamente están secuenciadas. Quisiera saber cómo indicar que incluya
todas las variables de pot23 a pot80