init.pop: Set up a fake population

Description Usage Arguments Details Value Author(s)

View source: R/simulate.R

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


lllcrc documentation built on May 2, 2019, 3:34 p.m.