[R] [SOLVED] Re: Strange glm(, quasipoisson) error

2010-10-18 Thread Wil M Contreras Arbaje
On Oct 19, 2010, at 00:55 , Wil M Contreras Arbaje wrote: Dear list, I have recently encountered an odd error when running glm(dep~indep, quasipoisson): while, with a subset of my data, I could get a perfectly reasonable model, once I include all of my data (17K+ observations, 29 variables)

Re: [R] Strange glm(, quasipoisson) error

2010-10-18 Thread Wil M Contreras Arbaje
turning NA Don't know if it helps... On Oct 19, 2010, at 00:55 , Wil M Contreras Arbaje wrote: Dear list, I have recently encountered an odd error when running glm(dep~indep, quasipoisson): while, with a subset of my data, I could get a perfectly reasonable model, once I include all of

[R] Strange glm(, quasipoisson) error

2010-10-18 Thread Wil M Contreras Arbaje
Dear list, I have recently encountered an odd error when running glm(dep~indep, quasipoisson): while, with a subset of my data, I could get a perfectly reasonable model, once I include all of my data (17K+ observations, 29 variables), I get the following error: Error in if (any(y < 0)) st

Re: [R] Nested unbalanced regression analysis

2010-09-30 Thread Wil M Contreras Arbaje
Whoa, easy there: members of the list are volunteers, allow some time before expecting a reply... On Sep 30, 2010, at 3:19 PM, Robert Quinn wrote: Hello, I am having a problem figuring out how to model a continuous outcome (y) given a continuous predictor (x1) and two levels of nest

Re: [R] using read.table, removing extra quotation mark from a text field? (e.g. ""cat" )

2010-09-12 Thread Wil M Contreras Arbaje
with regex: www.barebones.com/products/textwrangler/textwranglerpower.html (Textwrangler, OS X) sourceforge.net/apps/mediawiki/notepad-plus/index.php? title=Regular_Expressions (Notepad++, Windows) Cheers, hope it helps, Wil On Sep 12, 2010, at 6:27 PM, Dennis Murphy wrote: > Hi:

Re: [R] using read.table, removing extra quotation mark from a text field? (e.g. ""cat" )

2010-09-12 Thread Wil M Contreras Arbaje
While you are looking for a solution within R, it might be simpler to open your text file in almost any free text editor (Notepad++, Textwrangler, Smultron, vim come to mind), and do Replace all "' for ". On Sep 12, 2010, at 3:58 PM, jim holtman wrote: You can use the 'gsub' command to remo

Re: [R] R-equivalent Stata command: poisson or quasipoisson?

2010-09-12 Thread Wil M Contreras Arbaje
ain for your insight, Cheers, Wil On Sep 12, 2010, at 12:58 PM, Ben Bolker wrote: Wil M Contreras Arbaje gmail.com> writes: Thanks Bill! Not asking for help with Stata at all, on the contrary: the article mentioned using Stata to fit the model described earlier, and I wasn't

Re: [R] R-equivalent Stata command: poisson or quasipoisson?

2010-09-11 Thread Wil M Contreras Arbaje
f getting the same result as with some other system (or even with R if you do it again, mostly) is effectively zero. Tip: use R and forget the others. It makes life so much easier all round. -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org

[R] R-equivalent Stata command: poisson or quasipoisson?

2010-09-11 Thread Wil M Contreras Arbaje
Hello R-help, According to a research article that covers the topic I'm analyzing, in Stata, a Poisson pseudo-maximum-likelihood (PPML) estimation can be obtained with the command poisson depvar_ij ln(indepvar1_ij) ln(indepvar2_ij) ... ln(indepvarN_ij), robust I looked up Stata help fo