Description Usage Arguments Value Examples
Collect point estimate, standard error and 90
aggregate of tot.var
across groups defined by gp.var
and
over the whole data.
1 | group.total(x, gp.var, tot.var, result.name = "Total", drop.na.group = TRUE)
|
x |
a data frame of PUMS data. If x is already grouped, then this function optionally adds a level to the grouping. |
gp.var |
name of variable in x to group data by (string) or NULL if x is grouped and you do not want to add a level of grouping. May not be NULL if x is not grouped. |
tot.var |
(string) name of a numerical column in x to aggregate |
result.name |
name of estimate column in result. Default is 'Total. |
drop.na.group |
drop the group where |
data frame of aggregate, standard error of the aggregate,
and the margin of error of the aggregate of tot.var
over the groups defined by gp.var
and for the whole data.
1 2 | # Total household population of Washington State in 2016
group.total(wa.house16, 'TEN', 'NP', result.name='HH.Pop', drop.na.group=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.