init.pop: Set up a fake population

Description Usage Arguments Details Value Author(s)

Description

Simply initialized a data frame to represent the CRC data in a simulation experiment.

Usage

1
init.pop(n, covs = NULL)

Arguments

n

The population size.

covs

A string specifying a function for generating covariate values. By default, there are no covariates. The only non-default method at present is french.1.

Details

This is just a workhorse function, typically called by poptop.

Value

A data.frame representing a population, possibly with covariates. If there are no covariates, it is just a single column labeled ‘id’.

Author(s)

Zach Kurtz



Search within the lllcrc package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.