Description Usage Arguments Value Examples
collapse a data set to produce summary statistics possibly by a set of variables as in the Stata code: collapse (fun1) var1 (fun2) var2, by(byvar1 byvar2). But this function is more flexible than the Stata version because any arbitrary function can be used in collapse not just traditional aggregation functions.
1 | collapse(values, byvar)
|
values |
an argument with the form |
byvar |
a variable list giving the variables to collapse by. The resulting dataset will have as many rows as there are unique levels of the |
returns NULL, invisibly
1 2 3 4 5 6 | |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.