search for: y_cat

Displaying 1 result from an estimated 1 matches for "y_cat".

Did you mean: 3_cat
2008 Apr 14
5
Equivalent to a BY command in SAS
...ing in R that functions like a BY command in SAS? For example, let's say you have a variable x, and you want to see the mean. Easy... > mean(x) But what if you want to see the mean of x conditional on another discrete variable? My best attempts so far are something like... > mean(x, y_cat=1) ...which of course doesn't work. I have downloaded plenty of R user guides that are very informative, but am not seeing much on detailed descriptives or data manipulation (for my life, I can't figure out how to sort an attached data frame, but that's another issue). Thanks. -- Vi...