[R] pairs(x)

2004-10-29 Thread John-J . Smith
Hi,

I am using pairs(x) , but would like to change the point font and color for the bottom 
half of x.  I am using windows and opened a graphics page using x11(), then tried:

pairs(x)
points(x[110:114,1],x[110:114,2],col=6,pch=8)
points(x[115:119,1],x[115:119,2],col=4,pch=17)

Nothing happened.  I can program a loop and run thru the combinations of plots and use 
the points function to get what I need.  Hoping there is a more simple solution using 
pairs().

Thanks,

John

Visit our website at http://www.ubs.com

This message contains confidential information and is intend...{{dropped}}

__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] writing lm summary to file?

2004-10-27 Thread John-J . Smith
Hi,

I want to write the summary from a regression.  I am doing this because I do not see a 
way of get the std error, tvalues from the coefficients diagnostic.  n$coef does not 
give this only get the intercept and slope.  I tried to use write and write.table and 
got error in both cases.  I jumped thru the hoops below to no avail.  Also note, this 
is in windows.  I used to use unix, and do not recall this problem, but only have 
windows at this point.  Any suggestions are greatly appreciated.

John


 n-lm(formula = A ~ B, data = y)
 summary(n)

Call:
lm(formula = A ~ B, data = y)

Residuals:
Min  1Q  Median  3Q Max 
-5.0165 -0.9726 -0.4707  1.7783  3.8563 

Coefficients:
Estimate Std. Error t value Pr(|t|)   
(Intercept)  1.150720.38135   3.017  0.00506 **
B0.180420.05254   3.434  0.00171 **
---
Signif. codes:  0 `***' 0.001 `**' 0.01 `*' 0.05 `.' 0.1 ` ' 1 

Residual standard error: 2.14 on 31 degrees of freedom
Multiple R-Squared: 0.2755, Adjusted R-squared: 0.2522 
F-statistic: 11.79 on 1 and 31 DF,  p-value: 0.001711 

 help(write.table)

 write.table(summary(n),file =C\\)
Error in as.data.frame.default(x[[i]], optional = TRUE) : 
can't coerce summary.lm into a data.frame
 help(write)

 write(summary(n),file =C\\..)
Error in cat(list(...), file, sep, fill, labels, append) : 
argument 1 not yet handled by cat

Visit our website at http://www.ubs.com

This message contains confidential information and is intend...{{dropped}}

__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html