Learn R Programming

lllcrc (version 1.2)

init.pop: Set up a fake population

Description

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

Usage

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.

Value

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

Details

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