Nothing
Code
str1b <- make_strata(x1, depth = 500)
Condition
Warning:
The number of observations in each quantile is below the recommended threshold of 500.
* Stratification will use 2 breaks instead.
Code
str2a <- make_strata(x2, pool = 0.05)
Condition
Warning:
Stratifying groups that make up 5% of the data may be statistically risky.
i Consider increasing `pool` to at least 0.1.
Code
str2b <- make_strata(x2, pool = 0.05)
Condition
Warning:
Stratifying groups that make up 5% of the data may be statistically risky.
i Consider increasing `pool` to at least 0.1.
Code
s0 <- make_strata(x3)
Condition
Warning:
Too little data to stratify.
* Resampling will be unstratified.
Code
s1 <- make_strata(x3, pool = 0.06)
Condition
Warning:
Stratifying groups that make up 6% of the data may be statistically risky.
i Consider increasing `pool` to at least 0.1.
Code
s2 <- make_strata(mtcars$mpg)
Condition
Warning:
The number of observations in each quantile is below the recommended threshold of 20.
* Stratification will use 1 breaks instead.
Warning:
Too little data to stratify.
* Resampling will be unstratified.
Code
s3 <- make_strata(seq_len(50), breaks = -1)
Condition
Warning:
The bins specified by `breaks` must be >=2.
* Resampling will be unstratified.
Code
check_strata("surv", df)
Condition
Error:
! strata cannot be a <Surv> object.
i Use the time or event variable directly.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.