[R] undesirable output for lm( )

Frederic Ntirenganya ntfredo at gmail.com
Tue Oct 21 15:19:44 CEST 2014


Hi Swapnil,

Can you please explain your specific problem.  You said it is working well.
What is the desirable output? What is your output?
What do you want from it?

Cheers,
Fredo.

On Tue, Oct 21, 2014 at 3:07 PM, peter dalgaard <pdalgd at gmail.com> wrote:

> This is rubbish. We don't know what the output is nor what you perceive is
> wrong with it.
>
> And what is the business of cc-ing
>
> "respond-auto at linuxmafia.com" <respond-auto at linuxmafia.com>
> "esr at thyrsus.com" <esr at thyrsus.com>
>
> ?
>
> (The latter is Eric S. Raymond, who I strongly believe has no interest in
> your R problems.)
>
> This reeks of deliberate trouble-making. Unless you can come up with a
> credible explanation for this, I strongly suggest that you be barred from
> this mailing list.
>
> Peter Dalgaard
>
>
> On 21 Oct 2014, at 12:33 , Swapnil Khobragade <
> Swapnil.Khobragade at lntinfotech.com> wrote:
>
> > Hi,
> >
> > I have written this code and it is working fine
> >
> > Example 1:
> >
> >> fit <- lm(cpi ~ year + quarter)
> >> (cpi2011 <- fit$coefficients[[1]] + fit$coefficients[[2]]*2011 +
> fit$coefficients[[3]]*(1:4))
> >
> >
> *****************************************************************************************
> > Example 2:
> >
> >> fit <- lm(cpi ~ year )
> >> (cpi2011 <- fit$coefficients[[1]] + fit$coefficients[[2]]*2011)
> >
> > I'm getting an undesirable output for this calculation.
> > Plz help in correcting the mistakes to get clear output.
> >
> >
> >
> > Regards,
> > Swapnil Khobragade
> > e-mail ID: swapnil.khobragade at lntinfotech.com<mailto:
> swapnil.khobragade at lntinfotech.com>
> > Tel: @@@@@@@(Direct) | +91 9503043368 (M)
> >
> >
> > ________________________________
> > The contents of this e-mail and any attachment(s) may contain
> confidential or privileged information for the intended recipient(s).
> Unintended recipients are prohibited from taking action on the basis of
> information in this e-mail and using or disseminating the information, and
> must notify the sender and delete it from their system. L&T Infotech will
> not accept responsibility or liability for the accuracy or completeness of,
> or the presence of any virus or disabling code in this e-mail"
> >
> >       [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > R-help at 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.
>
> --
> Peter Dalgaard, Professor,
> Center for Statistics, Copenhagen Business School
> Solbjerg Plads 3, 2000 Frederiksberg, Denmark
> Phone: (+45)38153501
> Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com
>
> ______________________________________________
> R-help at 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.
>



-- 
Frederic Ntirenganya
Maseno University,
Kenya.
Mobile:(+254)718492836
Email: fredo at aims.ac.za
https://sites.google.com/a/aims.ac.za/fredo/

	[[alternative HTML version deleted]]



More information about the R-help mailing list