[R] Signif. codes
William Dunlap
wdunlap at tibco.com
Mon Jan 6 17:57:09 CET 2014
Capitalize your column name "pr(...)" - printCoefmat is looking for "Pr(...)".
Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf
> Of ???
> Sent: Monday, January 06, 2014 5:53 AM
> To: r-help at r-project.org
> Subject: [R] Signif. codes
>
> My question is about the "Signif. codes" , the output when I run
>
>
> matcoef =cbind(fit$par, se.coef,tval,2*(1-pnorm(abs(tval))))
>
> dimnames(matcoef)=list(names(tval),c("Estimate","Std.Error","t
> value","pr(>|t|)"))
>
> cat("\nCoefficient(s):\n")
>
>
> printCoefmat(matcoef, digits=4, signif.stars = TRUE)
>
>
> Coefficient(s):
>
>
> Estimate Std.Error t value pr(>|t|)
>
> [1,] -0.3941 0.7170 -0.5497 0.583
>
> [2,] -0.4278 0.1242 -3.4450 0.001
>
> [3,] 26.9080 5.2271 5.1478 0.000
>
>
> ---------------------------------------------------------------------------------------------------
>
> Signif. codes: 0 *** 0.001 ** 0.01 * 0.05 . 0.1 1
>
>
>
>
> My problem is the pr(>|t|) doesn't show signif.stars
>
> Does this means my data has problem?
>
>
> Thanks
>
> Irma Wang
>
> 2014/01/06
>
> [[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.
More information about the R-help
mailing list