stat_summary: Create a stats summary

Description Usage Arguments Value Examples

View source: R/stat_summary.R

Description

This function creates a summary stats for population, samples and parameter(s) of interest.

Usage

1
stat_summary(population, samples, parameter)

Arguments

population

The virtual population

samples

The drawed samples

parameter

A string vector or a single string of parameter(s) of interest

Value

a tibble summary stats

Examples

1
2
3
pop <- generate_virtual_pop(100000, "Height", rexp, 5)
samples <- draw_samples(pop, 1, c(1))
stat_summary(pop, samples, c('mean', 'sd'))

tguo9/samplingsimulatorr documentation built on May 5, 2020, 12:10 a.m.