Hi,

I am very new on R so I will remember to post in plain text next time.
Thank you all for your help. I think I can figure it out now~ Many thanks!:)

Best regards,

Siqi


2014-03-31 11:43 GMT+01:00 Helios de Rosario <helios.derosa...@ibv.upv.es>:

> >>> El día 30/03/2014 a las 15:23, "Si Qi L." <liusiqi.n...@gmail.com>
> > escribió:
> > Hi
> >
> > I have a problem with linear regression. This is my codes:
> >
> > acc1<- lm(data$acc ~ dummy + data$Reqloanamount + data$Code +
> > data$Code.1 +
> > data$EmpNetMonthlyPay + data$Customer_Age + data$RTI)
> > summary(acc1)
> >
> > These attributes are all numerical except the "acc"(factors), so how
> can I
> > fix the problem R showed me? can anyone please help me out? Many
> > thanks!
> >
>
> If you want to fit a model with a factor dependent variable, you should
> not use lm(). Perhaps you are looking for ?glm (family "binomial") if it
> is binomial data, or ?polr (in package MASS), ?multinom (in nnet), or
> ?clm and others (in ordinal) if the variable has more than two levels.
>
> Helios De Rosario
>
> INSTITUTO DE BIOMECÁNICA DE VALENCIA
> Universidad Politécnica de Valencia * Edificio 9C
> Camino de Vera s/n * 46022 VALENCIA (ESPAÑA)
> Tel. +34 96 387 91 60 * Fax +34 96 387 91 69
> www.ibv.org
>
>   Antes de imprimir este e-mail piense bien si es necesario hacerlo.
> En cumplimiento de la Ley Orgánica 15/1999 reguladora de la Protección
> de Datos de Carácter Personal, le informamos de que el presente mensaje
> contiene información confidencial, siendo para uso exclusivo del
> destinatario arriba indicado. En caso de no ser usted el destinatario
> del mismo le informamos que su recepción no le autoriza a su divulgación
> o reproducción por cualquier medio, debiendo destruirlo de inmediato,
> rogándole lo notifique al remitente.
>
>

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to