Learn R Programming

kaps (version 1.0-0)

count.mindat: Caculate the minimum sample size when the number of subgroups is given

Description

This function caculates the minimum sample size when the number of subgroups is given.

Usage

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

Arguments

formula
a Formula object with a response on the left hand side of the '~' operator, and the covariate terms on the right side. The response has to be a survival object with survival time and censoring status in the Surv

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