Displaying 1 result from an estimated 1 matches for "monthn".
Did you mean:
months
2012 Sep 27
2
equivalent of Stata "by construct"
...(e.g. Stata does not support linear/quadratic programming). I have been going over the R syntax and I had a quick question:
In Stata, one has a very useful construction called "by", e.g.
by month signal: gen xxx = myfunction(yyy zzz) if cond1==cond2
Similarly, in SAS, one can write
by monthn signal;
if cond1=cond2 then xxx = myfunction(yyy zzz);
run;
I looked at a lot of R tutorials, but I haven't come across the equivalent of the Stata or SAS "by" construct in R?
________________________________
This communication is for informational purposes only. I...{{dropped...