Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd examples using .BY to documentation #1363
Comments
|
This would be nice. I've never understood #Edit: Finally used this today! Exactly as suggested on Andrew Brooks' blog -- leave-one-out mean estimation to test sensitivity of a mean to certain observations. |
|
Here seems like a pretty good example if I do say so myself ;-) (I'm quite self-satisfied to have used |
|
Where do we want these to go? Came up with an example I think shows a typical use case of
|
|
@MichaelChirico Leave-one-out means will probably always be faster like
Maybe medians or something would make sense. You seem to have repeating ids within the same class and grade. Not obvious what that means here, but the extension is...
|
|
Just having multiple tests for each student (also the case in the first example). Goal here is to illustrate a use for |
|
@MichaelChirico I think the goal should be not just to illustrate what The performance here is pretty abysmal (1 sec for
While this dodges the retype-every-varname-twice issue, it is even slower, as one might expect. Anyway, we can agree to disagree. |
|
@mattdowle I see that you are pointing to How to benefit from One thing that the help text states " Some examples: Non-factor grouping variable in
Factor grouping variable in
|
Two people expressed they'd like more examples.
http://stackoverflow.com/questions/22511301/how-to-benefit-from-by-in-data-table
http://brooksandrew.github.io/simpleblog/articles/advanced-data-table/ (see comments)