[R] How to get the P-values from GLM results?

2008-03-19 Thread Alex Wang
Hello all, I have a question concerning how to get the P-value for a explanatory variables based on GLM. I'll run multiple regressions with GLM, and I'll need the P-value for the same explanatory variable from these multiple GLM results. I check the help and there are quite a few Value optio

[R] How to read in expressions as function parameters?

2007-12-09 Thread Alex Wang
Hi: There, I've got a question about how to read in expressions as function parameters and it really bothered me. I'm going to use curve() function to plot curves, and I'd like to write a menu function to let use input math expressions. say, if I'd like curve(3*x*x-4/x, 10, 100), I use sca