Re: [R] New variables "remember" how they were created?

2009-10-29 Thread Skipper Seabold
ental variable (the result of fitting y against all of the instruments). So how does R know that yd should be replace by (z - y.1) unless yd carries some information that it was originally created as (y - y.1). Maybe this question is best asked on the devel list? Cheers, Skipper > Reg

[R] New variables "remember" how they were created?

2009-10-27 Thread Skipper Seabold
Hello all, I hope this question is appropriate for this ML. Basically, I am wondering if when you create a new variable, if the variable holds some information about how it was created. Let me explain, I have the following code to replicate an example in a textbook (Greene's Econometric Analysis

Re: [R] What is the Datasets License?

2009-07-20 Thread Skipper Seabold
On Sat, Jul 18, 2009 at 6:28 PM, Duncan Murdoch wrote: > On 18/07/2009 6:06 PM, Skipper Seabold wrote: >> >> Hello, >> >> I saw that this question has been asked here before but couldn't find >> an answer.  Are the raw datasets in R in the public domain?  M

[R] What is the Datasets License?

2009-07-18 Thread Skipper Seabold
Hello, I saw that this question has been asked here before but couldn't find an answer. Are the raw datasets in R in the public domain? Most are based on quite old "classic" published results, so I would then assume that the raw data is public domain rather than GPL. Can anyone answer this defi

Re: [R] GLM Gamma Family logLik formula?

2009-07-15 Thread Skipper Seabold
On Wed, Jul 15, 2009 at 8:45 PM, Ben Bolker wrote: > > > > jseabold wrote: >> >> Hello all, >> >> I was wondering if someone can enlighten me as to the difference >> between the logLik in R vis-a-vis Stata for a GLM model with the gamma >> family. >> >> Stata calculates the loglikelihood of the mod

[R] GLM Gamma Family logLik formula?

2009-07-15 Thread Skipper Seabold
Hello all, I was wondering if someone can enlighten me as to the difference between the logLik in R vis-a-vis Stata for a GLM model with the gamma family. Stata calculates the loglikelihood of the model as (in R notation) some equivalent function of -1/scale * sum(Y/mu+log(mu)+(scale-1)*log(Y)+l