select_fams: select families

Description Usage Arguments Details Value Author(s)

View source: R/createlms.R

Description

Select groups (families)

Usage

1
select_fams(data, prop = 0.75, group, verbose = F)

Arguments

data

dataframe as returned by prepare data

prop

proportion of families to be sampled

group

name of the group variable (character) if not "group", ignored

verbose

if TRUE information about sample size is printed out

Details

function selects a given proportion of groups/families from the data if no grouping variable is given the original data set is returned function is called inside do_iterations and may not called directly

Value

dataframe containing only prop.fam percent the families in data

Author(s)

Mandy Vogel


mvogel78/childsds documentation built on May 23, 2019, 10:55 a.m.