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

Description Usage Arguments See Also Examples

Description

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

Usage

1
	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 function. For more details, see Formula page.

data

a data frame with variables used in formula. It needs at least three variables including survival time, censoring status, and a covariate. Multivariate covariates can be supported with "+" sign.

part

a numeric object to determine the number of subgroups we want to split.

See Also

kaps

Examples

1
2
3
4
	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)


Search within the kaps package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.