[R] Inverse Gaussian distribution not working in glm funciton

2018-04-16 Thread michael tsagris via R-help
Hello everybody, I have encountered a problem with the inverse Gaussian distribution. It is very likely that it will not work regardless of the data input. I have programmed this regression and it works fine no matter which distribution the response comes from. If you run this example (first tri

Re: [R] Inverse Gaussian Distribution

2011-01-04 Thread Louisa
Dear David, It works! Thank you so much for your help! Louisa -- View this message in context: http://r.789695.n4.nabble.com/Inverse-Gaussian-Distribution-tp3172533p3174015.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-p

Re: [R] Inverse Gaussian Distribution

2011-01-04 Thread Louisa
Thank you again David! I did not try it yet, cause neither the dataset nor R is on this computer. I'll try it in a few hours, as soon as possible, when I'm on my personal computer. I'll let you know if it works. I'm really curious! Thank you for your time! Best Wishes, Louisa -- View this

Re: [R] Inverse Gaussian Distribution

2011-01-04 Thread David Winsemius
On Jan 4, 2011, at 7:50 AM, Louisa wrote: Thank you! But i'm wondering: if you run area <- factor(area, levels=c("C", "A","B","D","E","F") ) then you are transforming only 'area', aren't you? isn't it possible to transform the whole data like i did for agecat but now for area and area C

Re: [R] Inverse Gaussian Distribution

2011-01-04 Thread Louisa
Thank you! But i'm wondering: if you run area <- factor(area, levels=c("C", "A","B","D","E","F") ) then you are transforming only 'area', aren't you? isn't it possible to transform the whole data like i did for agecat but now for area and area C as baseline, or are you doing so when y

Re: [R] Inverse Gaussian Distribution

2011-01-03 Thread Dennis Murphy
Hi: "How can i manipulate the data to set the baseline of area to C? R is producing errors when I'm trying to do so." See ?relevel Dennis On Mon, Jan 3, 2011 at 12:03 PM, Louisa wrote: > > Dear, > > I want to fit an inverse gaussion distribution to a data set. > > The predictor variables are

Re: [R] Inverse Gaussian Distribution

2011-01-03 Thread David Winsemius
On Jan 3, 2011, at 3:03 PM, Louisa wrote: Dear, I want to fit an inverse gaussion distribution to a data set. The predictor variables are gender, area and agecategory. For each of these variables I've defined a baseline e.g. #agecat: baseline is 3 data<-transform(data, agecat=C(factor(ageca

[R] Inverse Gaussian Distribution

2011-01-03 Thread Louisa
Dear, I want to fit an inverse gaussion distribution to a data set. The predictor variables are gender, area and agecategory. For each of these variables I've defined a baseline e.g. #agecat: baseline is 3 data<-transform(data, agecat=C(factor(agecat,ordered=TRUE), contr.treatment(n=6,base