[R] Remove Indeterminate Level

Thomas Lumley tlumley at u.washington.edu
Thu Oct 7 17:37:10 CEST 2004


On Thu, 7 Oct 2004, Neil Leonard wrote:

> Hi,
>
> I have imported some data to R from stata and my factor variables have an 
> Indeterminate level which I don't really want. For example the variable sex 
> has the levels Male, Female and Indeterminate. There are no 'Indeterminate' 
> values in the data. Can somebody tell me how to get rid of this level as it 
> restricting my cox ph model.
>

Two ways to do this are in the Examples section of help(factor)

 	-thomas




More information about the R-help mailing list