search for: lpop

Displaying 2 results from an estimated 2 matches for "lpop".

Did you mean: loop
2013 Oct 17
0
Singular Matrix 'a' in solve
...ables (set as I, pop, inv, gov, c, life, d; which each is “numeric[450]”). The procedure is modify from code provided by B.E. Hansen at http://www.ssc.wisc.edu/~bhansen/progs/ecnmt_00.html. *Then the variable is being transformed to* y <- lag_v(i,0) cf <- lag_v(c,0) lpop <- lag_v(pop,0) linv <- lag_v(inv,0) lgov <- lag_v(gov,0) d1 <- lag_v(d,0) llife <- lag_v(life,0) yt <- tr(y) ct <- tr(cf) y, cf, lpop, linv, lgov, d1, llife each is in “375x1 double matrix” yt and ct each is “300x1...
2010 Nov 24
0
negative binomial regression, unbalanced panel
...sed count. So far I have used fixed-effects negative binomial regression, i.e. assuming constant within-group dispersion. The command in Stata is xtnbreg, fe. How could I replicate this in R? I have found the package pglm, and tried the following pglm(T_total ~ Lgdpqt_2 + Lgdpqt_3 + Lgdpqt_4 + lpop + yrsconflict + past_T_total + Lpolcat_2 + Lpolcat_3 + Lpolcat_4 + Lgdpgr + mob_fixed + wdi_urbanpop + Lopen + Ldurable + factor(year), data = df, family = negbin, model = "within", index = c("code","year"))) This takes ages, and then retu...