Hello guys I have the following questions. I am currently running various regressions using the lm() command. As a result I get the following: <http://r.789695.n4.nabble.com/file/n4673551/Bildschirmfoto_2013-08-12_um_11.40.56.png> My question is why R always adds the "e"s although for example they could just write -2610 as the upper left value which would be less confusing than with the "e"s? Many thanks for your help, I really appreciate it. Tom -- View this message in context: http://r.789695.n4.nabble.com/Problems-with-displaying-Regression-Results-tp4673551.html Sent from the R help mailing list archive at Nabble.com.
TMiller <thomas.mueller <at> student.unisg.ch> writes:> > Hello guys > > I have the following questions. > I am currently running various regressions using the lm() command. > As a result I get the following:[snip] (it's generally better to just cut-and-paste text into your message ...)> > My question is why R always adds the "e"s although for example they could > just write -2610 as the upper left value which would be less confusing than > with the "e"s?Because it tries to format all of the values within a column consistently. (See ?format for details, although that does not answer your question directly.)
Thanks, that's exactly what I wanted. Am 12.08.2013 um 15:03 schrieb arun <smartpink111 at yahoo.com> :> Hi, > > You could change ?options() > options("scipen") > #$scipen > #[1] 0 > print(1e5) > #[1] 1e+05 > op<- options() > options(scipen=20) > print(1e10) > #[1] 10000000000 > > > Using the example from ?lm() > ctl <- c(4.17,5.58,5.18,6.11,4.50,4.61,5.17,4.53,5.33,5.14) > trt <- c(4.81,4.17,4.41,3.59,5.87,3.83,6.03,4.89,4.32,4.69) > group <- gl(2, 10, 20, labels = c("Ctl","Trt")) > weight <- c(ctl, trt) > lm.D9 <- lm(weight ~ group) > summary(lm.D9) > > > coef(summary(lm.D9)) > # Estimate Std. Error t value Pr(>|t|) > #(Intercept) 5.032 0.2202177 22.85012 0.000000000000009547128 > #groupTrt -0.371 0.3114349 -1.19126 0.249023165973006332941 > > > options(op) #reset > coef(summary(lm.D9)) > # Estimate Std. Error t value Pr(>|t|) > #(Intercept) 5.032 0.2202177 22.85012 9.547128e-15 > #groupTrt -0.371 0.3114349 -1.19126 2.490232e-01 > A.K. > > > > > > > ----- Original Message ----- > From: TMiller <thomas.mueller at student.unisg.ch> > To: r-help at r-project.org > Cc: > Sent: Monday, August 12, 2013 5:45 AM > Subject: [R] Problems with displaying Regression Results > > Hello guys > > I have the following questions. > I am currently running various regressions using the lm() command. > As a result I get the following: > <http://r.789695.n4.nabble.com/file/n4673551/Bildschirmfoto_2013-08-12_um_11.40.56.png> > > My question is why R always adds the "e"s although for example they could > just write -2610 as the upper left value which would be less confusing than > with the "e"s? > > Many thanks for your help, I really appreciate it. > Tom > > > > -- > View this message in context: http://r.789695.n4.nabble.com/Problems-with-displaying-Regression-Results-tp4673551.html > Sent from the R help mailing list archive at Nabble.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. > >
Hi,
You could change ?options()
options("scipen")
#$scipen
#[1] 0
?print(1e5)
#[1] 1e+05
op<- options()
options(scipen=20)
?print(1e10)
#[1] 10000000000
Using the example from ?lm()
ctl <- c(4.17,5.58,5.18,6.11,4.50,4.61,5.17,4.53,5.33,5.14)
? trt <- c(4.81,4.17,4.41,3.59,5.87,3.83,6.03,4.89,4.32,4.69)
????? group <- gl(2, 10, 20, labels = c("Ctl","Trt"))
????? weight <- c(ctl, trt)
????? lm.D9 <- lm(weight ~ group)
?summary(lm.D9)
?coef(summary(lm.D9))
#??????????? Estimate Std. Error? t value??????????????? Pr(>|t|)
#(Intercept)??? 5.032? 0.2202177 22.85012 0.000000000000009547128
#groupTrt????? -0.371? 0.3114349 -1.19126 0.249023165973006332941
options(op) #reset
coef(summary(lm.D9))
#??????????? Estimate Std. Error? t value???? Pr(>|t|)
#(Intercept)??? 5.032? 0.2202177 22.85012 9.547128e-15
#groupTrt????? -0.371? 0.3114349 -1.19126 2.490232e-01
A.K.
----- Original Message -----
From: TMiller <thomas.mueller at student.unisg.ch>
To: r-help at r-project.org
Cc:
Sent: Monday, August 12, 2013 5:45 AM
Subject: [R] Problems with displaying Regression Results
Hello guys
I have the following questions.
I am currently running various regressions using the lm() command.
As a result I get the following:
<http://r.789695.n4.nabble.com/file/n4673551/Bildschirmfoto_2013-08-12_um_11.40.56.png>
My question is why R always adds the "e"s although for example they
could
just write -2610 as the upper left value which would be less confusing than
with the "e"s?
Many thanks for your help, I really appreciate it.
Tom
--
View this message in context:
http://r.789695.n4.nabble.com/Problems-with-displaying-Regression-Results-tp4673551.html
Sent from the R help mailing list archive at Nabble.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.