Hello,
That will compute a "fit" with coefficient equal to mean(y) and std
error equal to sd(y)/sqrt(length(y))
Hope this helps,
Rui Barradas
Em 28-04-2014 19:35, Alejo C.S. escreveu:
Dear list,
Reading a function I found this:
lm ( y ~ 1 )
I know that Y ~ -1 + A is a straight-line with
Dear list,
Reading a function I found this:
lm ( y ~ 1 )
I know that Y ~ -1 + A is a straight-line with no y-intercept; that is, a
fit forced through (0,0). But I never saw the first example. Any tip?
Thanks in advance!
C.
[[alternative HTML version deleted]]
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 :
> >>> El día 30/03/2014 a las 15:23, "Si Qi L."
> > escribió:
> > Hi
> >
>
>>> El día 30/03/2014 a las 15:23, "Si Qi L."
> 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 attr
Ted:
Yes. You're probably right, and I'm probably wrong. I did not read
carefully enough. Impossible to know for sure with such an ill-posed
query, though.
Cheers,
Bert
Bert Gunter
Genentech Nonclinical Biostatistics
(650) 467-7374
"Data is not information. Information is not knowledge. And kno
I suspect the problem may be with the structure of the data.
Si Qi L wrote:
[...]
acc1<- lm(data$acc ~ dummy + data$Reqloanamount + data$Code +
data$Code.1 + data$EmpNetMonthlyPay + data$Customer_Age + data$RTI)
[...]
These attributes are all numerical except the "acc"(factors)
[...]
1. Post in plain text, not HTML.
2. Read ?lm and note the data argument. Use it in your lm call instead
of all the $data extractions.
3. Your problem is with the summary() call, so read ?summary.lm. Learn
about S3 methods if you do not know where the ".lm" part is coming
from by reading the "
Please provide some data from your variable data.
Show the output of dput( data) or an subset
of data which leads toe the specific error.
Regards
On Sun, Mar 30, 2014 at 02:23:09PM +0100, Si Qi L. wrote:
> Hi
>
> I have a problem with linear regression. This is my codes:
>
> acc1<- lm(data$a
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
n...@r-project.org [mailto:r-help-bounces@r-
> project.org] On Behalf Of Sonia Amin
> Sent: Friday, November 16, 2012 10:44 PM
> To: r-help@r-project.org
> Subject: [R] about lm
>
> Rui and Berend thank you for your help
> before posting this mail, I change the name of my data a
rank
> CC: soniaam...@gmail.com; r-help@r-project.org
> From: dwinsem...@comcast.net
> To: chicagobrownb...@hotmail.com
> Subject: Re: [R] about lm
> Date: Sat, 17 Nov 2012 08:31:01 -0800
>
>
> On Nov 17, 2012, at 4:29 AM, FJ M wrote:
>
> >
> > dat=read.csv("c
On Sat, Nov 17, 2012 at 4:56 PM, FJ M wrote:
>
> attach(attach(dat))
>
> should be
>
> attach(dat)
>
> Is attach() broken? I've been using attach() successfully for months. I was
> surprised that header=TRUE did not map the headers to the data. But since
> attach() worked, I've never asked for a
.
Thanks,
Frank
> CC: soniaam...@gmail.com; r-help@r-project.org
> From: dwinsem...@comcast.net
> To: chicagobrownb...@hotmail.com
> Subject: Re: [R] about lm
> Date: Sat, 17 Nov 2012 08:31:01 -0800
>
>
> On Nov 17, 2012, at 4:29 AM, FJ M wrote:
>
> >
>
nk
Date: Fri, 16 Nov 2012 20:42:39 +0100
From: soniaam...@gmail.com
To: r-help@r-project.org
Subject: [R] about lm
Dear friends,
I have a csv file entitled ven.csv located in C:\\, this file
contains only
two columns:"ve" and "su" I have written the following lines:
data=re
On Sat, Nov 17, 2012 at 12:29 PM, FJ M wrote:
>
> dat=read.csv("c:\\ven.csv",header=TRUE,sep=";");
> attach(attach(dat))
Ahh! Two at once! Why -- for the love of god, why!
:-P
M
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listin
dat=read.csv("c:\\ven.csv",header=TRUE,sep=";");
attach(attach(dat))
dat
lm.1<-lm(ve~ su)
summary(lm.1)
GL Frank
> Date: Fri, 16 Nov 2012 20:42:39 +0100
> From: soniaam...@gmail.com
> To: r-help@r-project.org
> Subject: [R] about lm
>
> Dear frie
ok I am sorry
2012/11/16 Hasan Diwan
> Ms Amin,
>
> On 16 November 2012 14:06, Sonia Amin wrote:
>
>> I have attached the file ven.csv
>
>
> Attachments don't come through on the mailing list. Please enclose the
> first few lines in your message. -- H
> --
> Sent from my mobile device
> Envoyai
Here the rest of the message:
changing the storage mode of an object 'factor' is not allowed
More: Message opinion:
In model.response (mf, "numeric"):
using type = "numeric" with a factor response type will be ignored
I have attached the file ven.csv
2012/11/16 Rui Barradas
> Hello,
>
> The
Hello,
The error message is not at all clear. Have you copied and pasted it?
Can you post a data example? Using ?dput, for instance.
dput(head(mat, 30)) # paste the output of this in a post
Rui Barradas
Em 16-11-2012 21:44, Sonia Amin escreveu:
Rui and Berend thank you for your help
before p
Rui and Berend thank you for your help
before posting this mail, I change the name of my data and it becomes "mat" and
I tried with this line:
lm (ve~ su, data = mat)
I got this message:
Lm.fit error in (x, y, offset = offset = singular.ok singular.ok ...)
[[alternative HTML version del
I quote Rolf Turner:
"Learn something about R; don't just hammer and hope. Read the
introductory manuals and scan the FAQ."
The answer is that your data are in "data," but until you make a
greater effort to learn R, I'm not sure this will be helpful to you.
Cheers,
Bert
On Fri, Nov 16, 2012 a
On 16-11-2012, at 20:42, Sonia Amin wrote:
> Dear friends,
> I have a csv file entitled ven.csv located in C:\\, this file contains only
> two columns:"ve" and "su" I have written the following lines:
> data=read.csv("c:\\ven.csv",header=TRUE,sep=";");
>
> lm(ve~ su)
> I have obtained the follow
Hello,
1. Don't call your dataset 'data', it's the name of an R function.
2. Imagine it's called 'dat'. Then you must use the lm() argument data =
dat. Like this:
lm(ve~ su, data = dat)
Hope this helps,
Rui Barradas
Em 16-11-2012 19:42, Sonia Amin escreveu:
Dear friends,
I have a csv file
Dear friends,
I have a csv file entitled ven.csv located in C:\\, this file contains only
two columns:"ve" and "su" I have written the following lines:
data=read.csv("c:\\ven.csv",header=TRUE,sep=";");
lm(ve~ su)
I have obtained the following message:
Error in eval(expr, envir, enclos) : object
24 matches
Mail list logo