[R] What does the : operator mean in glm formulas

2012-01-19 Thread Xiaobo Gu
Hi, I see the following is the credit scoreing in R guide : m2-glm(formula = good_bad ~ checking + duration + history+ purpose +amount + savings + employed + installp + marital + coapp +age + other + depends + telephon + foreign +checking:amount What does checking:amount mean? Regards,

Re: [R] What does the : operator mean in glm formulas

2012-01-19 Thread Ted Harding
On 19-Jan-2012 Xiaobo Gu wrote: Hi, I see the following is the credit scoreing in R guide : m2-glm(formula = good_bad ~ checking + duration + history + purpose +amount + savings + employed + installp + marital + coapp +age + other + depends + telephon + foreign +checking:amount What does

Re: [R] What does the : operator mean in glm formulas

2012-01-19 Thread David Winsemius
On Jan 19, 2012, at 8:02 AM, Xiaobo Gu wrote: Hi, I see the following is the credit scoreing in R guide : m2-glm(formula = good_bad ~ checking + duration + history+ purpose +amount + savings + employed + installp + marital + coapp +age + other + depends + telephon + foreign

Re: [R] What does the : operator mean in glm formulas

2012-01-19 Thread Xiaobo Gu
and factors appearing in the term. What does interaction mean, and what does term mean here ? Xiaobo Gu From: David Winsemius Date: 2012-01-19 21:46 To: guxiaobo1982 CC: r-help; ds5j Subject: Re: [R] What does the : operator mean in glm formulas On Jan 19, 2012, at 8:02 AM, Xiaobo Gu

Re: [R] What does the : operator mean in glm formulas

2012-01-19 Thread David Winsemius
21:46 To: guxiaobo1982 CC: r-help; ds5j Subject: Re: [R] What does the : operator mean in glm formulas On Jan 19, 2012, at 8:02 AM, Xiaobo Gu wrote: Hi, I see the following is the credit scoreing in R guide : m2-glm(formula = good_bad ~ checking + duration + history+ purpose +amount + savings

Re: [R] What does the - operator mean?

2011-04-22 Thread Rolf Turner
On 22/04/11 17:53, Liviu Andronic wrote: On Thu, Apr 21, 2011 at 9:59 PM, Thomas Lumleytlum...@uw.edu wrote: The Evil and Wrong use is to modify variables in the global environment. I'm a bit at a loss. Why is it so wrong and evil? Because there is extreme danger of accidentally overwriting

[R] What does the - operator mean?

2011-04-21 Thread Cliff Clive
I've been reading some code from an example in a blog post ( http://www.maxdama.com/ here ) and I came across an operator that I hadn't seen before. The author used a - operator to update a variable, like so: ecov_xy - ecov_xy+decay*(x[t]*y[t]-ecov_xy) At first I thought it was a mistake and

Re: [R] What does the - operator mean?

2011-04-21 Thread Cliff Clive
I should probably point out that in the example, ecov_xy and decay are scalars, and x and y are vectors. -- View this message in context: http://r.789695.n4.nabble.com/What-does-the-operator-mean-tp3466657p3466672.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] What does the - operator mean?

2011-04-21 Thread Kehl Dániel
maybe help (-) helps daniel 2011-04-21 12:14 keltezéssel, Cliff Clive írta: I should probably point out that in the example, ecov_xy and decay are scalars, and x and y are vectors. -- View this message in context:

Re: [R] What does the - operator mean?

2011-04-21 Thread Roy Mendelssohn
?assignOps -Roy M. On Apr 21, 2011, at 12:08 PM, Cliff Clive wrote: I've been reading some code from an example in a blog post ( http://www.maxdama.com/ here ) and I came across an operator that I hadn't seen before. The author used a - operator to update a variable, like so: ecov_xy -

Re: [R] What does the - operator mean?

2011-04-21 Thread Thomas Lumley
On Fri, Apr 22, 2011 at 7:08 AM, Cliff Clive cliffcl...@gmail.com wrote: I've been reading some code from an example in a blog post ( http://www.maxdama.com/ here ) and I came across an operator that I hadn't seen before.  The author used a - operator to update a variable, like so: ecov_xy -

Re: [R] What does the - operator mean?

2011-04-21 Thread Marc Schwartz
On Apr 21, 2011, at 2:08 PM, Cliff Clive wrote: I've been reading some code from an example in a blog post ( http://www.maxdama.com/ here ) and I came across an operator that I hadn't seen before. The author used a - operator to update a variable, like so: ecov_xy -

Re: [R] What does the - operator mean?

2011-04-21 Thread Rolf Turner
On 22/04/11 07:08, Cliff Clive wrote: I've been reading some code from an example in a blog post ( http://www.maxdama.com/ here ) and I came across an operator that I hadn't seen before. The author used a- operator to update a variable, like so: ecov_xy- ecov_xy+decay*(x[t]*y[t]-ecov_xy) At

Re: [R] What does the - operator mean?

2011-04-21 Thread Thomas Lumley
On Fri, Apr 22, 2011 at 9:39 AM, Rolf Turner rolf.tur...@xtra.co.nz wrote: On 22/04/11 07:08, Cliff Clive wrote: I've been reading some code from an example in a blog post ( http://www.maxdama.com/ here ) and I came across an operator that I hadn't seen before.  The author used a- operator to

Re: [R] What does the - operator mean?

2011-04-21 Thread Liviu Andronic
On Thu, Apr 21, 2011 at 9:59 PM, Thomas Lumley tlum...@uw.edu wrote: The Evil and Wrong use is to modify variables in the global environment. I'm a bit at a loss. Why is it so wrong and evil? In other words, how should one modify variables in the global environment? Through the use of return()?