Learn R Programming

DesignCTPB (version 1.1.3)

proportion: Grid setting of proportions for each sub-population

Description

This function is to decide the r setting given specific density in each dimension

Usage

proportion(m, n_dim)

Arguments

m

integer, the number of grid points in each dimension, and we suggest m around 20 for 3 dimension

n_dim

integer for the dimension, which is equal to the number of sub-population plus 1

Value

matrix of setting the proportion of the population by given specific dimension and density in each dimension