Skip to content
Back to formatted view

Raw Message

Message-ID: <EA7E819E-F169-4502-A99A-958BABD5DFB2@comcast.net>
Date: 2011-01-03T20:19:04Z
From: David Winsemius
Subject: Inverse Gaussian Distribution
In-Reply-To: <1294085029867-3172533.post@n4.nabble.com>

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(agecat,ordered=TRUE),
> contr.treatment(n=6,base=3)))
>
> The variable 'area' goes from A to F (6 areas:
>
> 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.

In all likelihood it's a factor. Try
area <- factor(area, levels=c("C", "A","B","D","E","F") )


If not, then you need to provide more information. Read the Posting  
Guide.

>
> I'll be very thankful for any help you can provide.
>
> Louisa
> -- 
> View this message in context: http://r.789695.n4.nabble.com/Inverse-Gaussian-Distribution-tp3172533p3172533.html
> Sent from the R help mailing list archive at Nabble.com.
>


David Winsemius, MD
West Hartford, CT