means_by_group: Calculate means for model and sample data for tabulation and...

Description Usage Arguments Value Author(s)

Description

Get means by domain group for various variables from block model and sample files. Combine the statistics in wide and tall (tidy) formats for tabulation and plotting respectively.

Usage

1
means_by_group(bm, bm_value, samp, samp_value, group, samp_weight = NULL)

Arguments

bm

Block model as data frame.

bm_value

Name of column in block model for calculation of mean.

samp

Sample data as data frame.

samp_value

Name of field in sample data for mean calculation.

group

Grouping field present in block model and sample data.

samp_weight

Optional decluster weight field in sample file.

Value

List of data frames with wide (for report tables) and tall (tidy) layout.

Author(s)

Alex M Trueman


truemoid/mstats documentation built on May 24, 2019, 7:17 a.m.