Learn R Programming

kaps (version 0.9-3)

count.mindat: Caculate the sample size given the number of partitions or subgroups

Description

This function caculates the sample size given the number of partitions or subgroups.

Usage

count.mindat(formula, data, part = 10)

Arguments

formula
an object with the type of Formula.
data
a dataset used in the Formula object.
part
a numeric object to determine the number of partitions or subgroups we want.

See Also

kaps

Examples

Run this code
data(toy)
	count.mindat(Surv(time,staus) ~ meta, data = toy, part =5)
	count.mindat(Surv(time,staus) ~ meta, data = toy, part =10)
	count.mindat(Surv(time,staus) ~ meta, data = toy)

Run the code above in your browser using DataLab