Re: [R] Syntax in taking log to transfrom the data to fit Gaussian distribution

2009-02-24 Thread Saeed Ahmadi
In order ot see if any of these syntaxes work or not, I made the QQ plot. Attached files are showing the QQ plots made when log was inside the model formulation and outside teh model formulation. You can see that when transformation were done outside, then I have a general better QQ plot (straight

Re: [R] Syntax in taking log to transfrom the data to fit Gaussian distribution

2009-02-24 Thread Philipp Pagel
On Tue, Feb 24, 2009 at 02:46:07AM -0800, Saeed Ahmadi wrote: > I have a data set (weight) that does not follow the Gaussian (Normal) > distribution. However, I have to transform the data before applying the > Gaussian distribution. I used this syntax and used log(weight) as: > posJy.model<-glm(log

[R] Syntax in taking log to transfrom the data to fit Gaussian distribution

2009-02-24 Thread Saeed Ahmadi
Hi, I have a data set (weight) that does not follow the Gaussian (Normal) distribution. However, I have to transform the data before applying the Gaussian distribution. I used this syntax and used log(weight) as: posJy.model<-glm(log(weight) ~ factor(pos), family=gaussian(link='identity'), subset