Set up a fake population

Share:

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

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.