?options
and see the scipen argument.
For example:
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)
options(scipen=20)
summary(lm.D9)
Armelini, Guillermo wrote:> Dear all,
>
> Is there anybody who can help me to avoid scientific number in the summary
of an lm model?
> Here there is an example of a usual output of the lm model.
> Thank you!
> Guillermo
>
> Example
>
> summary(lm(promiscuity.Index~allK))
> Call:
> lm(formula = promiscuity.Index ~ allK)
> Residuals:
> Min 1Q Median 3Q Max
> -1.67094 -0.13126 0.06703 0.19913 0.40673
> Coefficients:
> Estimate Std. Error t value Pr(>|t|)
> (Intercept) 5.497e-01 3.619e-03 151.88 <2e-16 ***
> allK 4.279e-05 1.923e-06 22.25 <2e-16 ***
> ---
> Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05
'.' 0.1 ' ' 1
> Residual standard error: 0.2535 on 5221 degrees of freedom
> Multiple R-Squared: 0.08664, Adjusted R-squared: 0.08646
> F-statistic: 495.3 on 1 and 5221 DF, p-value: < 2.2e-16
>
>
>
> This message has been scanned for viruses by TRENDMICRO,\ an...{{dropped}}
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html
>
--
Chuck Cleland, Ph.D.
NDRI, Inc.
71 West 23rd Street, 8th floor
New York, NY 10010
tel: (212) 845-4495 (Tu, Th)
tel: (732) 512-0171 (M, W, F)
fax: (917) 438-0894