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

2010-10-19 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), I

[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))

Re: [R] 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

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

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

2010-09-12 Thread Wil M Contreras Arbaje
] On Behalf Of Wil M Contreras Arbaje Sent: Sunday, 12 September 2010 11:27 AM To: r-help@r-project.org Subject: [R] R-equivalent Stata command: poisson or quasipoisson? Hello R-help, According to a research article that covers the topic I'm analyzing, in Stata, a Poisson pseudo-maximum-likelihood (PPML

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

2010-09-12 Thread Wil M Contreras Arbaje
, Cheers, Wil On Sep 12, 2010, at 12:58 PM, Ben Bolker wrote: Wil M Contreras Arbaje wil.contreras at 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 sure how to do

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

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

2010-09-12 Thread Wil M Contreras Arbaje
/index.php? title=Regular_Expressions (Notepad++, Windows) Cheers, hope it helps, Wil On Sep 12, 2010, at 6:27 PM, Dennis Murphy wrote: Hi: On Sun, Sep 12, 2010 at 1:05 PM, Wil M Contreras Arbaje wil.contre...@gmail.com wrote: While you are looking for a solution within R, it might be simpler

[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