mirror of
https://github.com/agdamsbo/stRoke.git
synced 2024-11-21 12:30:23 +01:00
gt_plot() is out due to errors. New function win_prop() is in. See NEWS.md.
This commit is contained in:
parent
25859ea7c0
commit
d356eff512
@ -22,8 +22,7 @@ Suggests:
|
||||
remotes,
|
||||
rmarkdown,
|
||||
spelling,
|
||||
testthat (>= 3.0.0),
|
||||
webshot2
|
||||
testthat (>= 3.0.0)
|
||||
Language: en-US
|
||||
Config/testthat/edition: 3
|
||||
Imports:
|
||||
|
@ -12,6 +12,7 @@ export(label_select)
|
||||
export(quantile_cut)
|
||||
export(read_redcap_tables)
|
||||
export(source_lines)
|
||||
export(win_prob)
|
||||
import(ggplot2)
|
||||
import(utils)
|
||||
importFrom(MASS,polr)
|
||||
@ -26,8 +27,11 @@ importFrom(stats,coef)
|
||||
importFrom(stats,confint)
|
||||
importFrom(stats,glm)
|
||||
importFrom(stats,lm)
|
||||
importFrom(stats,pnorm)
|
||||
importFrom(stats,qnorm)
|
||||
importFrom(stats,quantile)
|
||||
importFrom(stats,reorder)
|
||||
importFrom(stats,xtabs)
|
||||
importFrom(tidyr,all_of)
|
||||
importFrom(tidyr,ends_with)
|
||||
importFrom(tidyr,pivot_longer)
|
||||
|
4
NEWS.md
4
NEWS.md
@ -1,5 +1,9 @@
|
||||
# stRoke 23.1.6
|
||||
|
||||
## Functions:
|
||||
|
||||
* win_prop() added to implement the suggested methods in [DOI: 10.1161/STROKEAHA.121.037744](https://doi.org/10.1161/STROKEAHA.121.037744), as an implementation of "Tournament Methods" also found in `library(genodds)`. The function is based on the spreadsheet provided by the authors. A print.win_Prop is also added for printing.
|
||||
|
||||
## Notes:
|
||||
|
||||
* 23.1.5 failed on CRAN due to gt_plot(). This function has been dropped. Find it as as_ggplot() elsewhere.
|
||||
|
243
R/win_prob.R
Normal file
243
R/win_prob.R
Normal file
@ -0,0 +1,243 @@
|
||||
|
||||
#' @title Calculates the probability of winning
|
||||
#' @description Calculates the probability of winning (winP)
|
||||
#' @param data A data frame containing the response and group variable.
|
||||
#' @param response The name of the response variable.
|
||||
#' Takes first column if empty.
|
||||
#' @param group The name of the group variable.
|
||||
#' Takes second column if empty.
|
||||
#' @param alpha The alpha level for the hypothesis test. Default is 0.05.
|
||||
#' @param beta The beta level for the sample size calculation. Default is 0.2.
|
||||
#' @param group.ratio The ratio of group sizes. Default is 1.
|
||||
#' @param sample.size Flag to include sample size calculation. Default is FALSE.
|
||||
#' @param print.tables Flag to print cumulative tables. Default is FALSE.
|
||||
#' @param dec Numeric for decimals to print. Default is 3.
|
||||
#' @return A list containing the win_prob statistic, the confidence interval,
|
||||
#' and the p-value.
|
||||
#' @export
|
||||
#' @importFrom stats pnorm qnorm xtabs
|
||||
#' @source \doi{10.1161/STROKEAHA.121.037744}
|
||||
#' @examples
|
||||
#' win_prob(data=stRoke::talos,response="mrs_6",group="rtreat")
|
||||
win_prob <-
|
||||
function(data,
|
||||
response = NULL,
|
||||
group = NULL,
|
||||
alpha = 0.05,
|
||||
beta = 0.2,
|
||||
group.ratio = 1,
|
||||
sample.size = FALSE,
|
||||
print.tables = FALSE,
|
||||
dec = 3) {
|
||||
|
||||
if (is.null(response)){
|
||||
response <- names(data)[1]
|
||||
}
|
||||
|
||||
if (is.null(group)){
|
||||
group <- names(data)[2]
|
||||
}
|
||||
|
||||
group_levels <- levels(factor(data[, group]))
|
||||
|
||||
if (length(group_levels) != 2) {
|
||||
stop("The group has to contain 2, and only 2 levels.")
|
||||
}
|
||||
|
||||
if (!is.numeric(group.ratio)){
|
||||
stop("Group ratio must be a numeric")
|
||||
}
|
||||
|
||||
if (!is.logical(sample.size)){
|
||||
stop("Sample size must be a logical")
|
||||
}
|
||||
|
||||
# Internal helper function for calculating ranks
|
||||
freq_rank <- function(data, x = "Freq") {
|
||||
lapply(data, function(i) {
|
||||
rank <- c()
|
||||
n_i <- nrow(i)
|
||||
for (j in seq_len(n_i)) {
|
||||
if (j < n_i) {
|
||||
rank[j] <- ((i[j, x] + 1) / 2 + (sum(i[seq_len(n_i)[(j + 1):n_i], x])))
|
||||
}
|
||||
if (j == n_i) {
|
||||
rank[j] <- (i[j, x] + 1) / 2
|
||||
}
|
||||
}
|
||||
cbind(i, rank)
|
||||
})
|
||||
}
|
||||
|
||||
overall <-
|
||||
freq_rank(list(data.frame(xtabs(data = data[c(response)]))))[[1]]
|
||||
|
||||
tbl <- xtabs(data = data[c(response, group)])
|
||||
|
||||
tbl_df <- data.frame(tbl)
|
||||
|
||||
prop_df <- data.frame(proportions(tbl, group))
|
||||
|
||||
df <- cbind(tbl_df, prop = prop_df[, "Freq"])
|
||||
|
||||
list_cum <- split(df, df[, group])
|
||||
|
||||
list_cum <- lapply(list_cum, function(i) {
|
||||
data.frame(i, overall_rank = overall$rank)
|
||||
})
|
||||
|
||||
list_cum <- freq_rank(list_cum)
|
||||
|
||||
sum_a <- sum(df$Freq[df$rtreat == group_levels[1]])
|
||||
sum_b <- sum(df$Freq[df$rtreat == group_levels[2]])
|
||||
|
||||
list_cum[[1]]$win_frac <-
|
||||
with(list_cum[[1]], overall_rank - rank) / sum_b
|
||||
list_cum[[2]]$win_frac <-
|
||||
with(list_cum[[2]], overall_rank - rank) / sum_a
|
||||
|
||||
winP_a <- sum(with(list_cum[[1]], prop * win_frac))
|
||||
winP_b <- sum(with(list_cum[[2]], prop * win_frac))
|
||||
|
||||
var_win_frac_a <-
|
||||
sum(with(list_cum[[1]], prop * win_frac ^ 2)) - winP_a ^ 2
|
||||
var_win_frac_b <-
|
||||
sum(with(list_cum[[2]], prop * win_frac ^ 2)) - winP_b ^ 2
|
||||
|
||||
var_win_prob <- var_win_frac_a / sum_a + var_win_frac_b / sum_b
|
||||
|
||||
se_win_prob <- sqrt(var_win_prob)
|
||||
|
||||
ci_up <-
|
||||
exp(log(winP_a / (1 - winP_a)) - qnorm(1 - alpha / 2) * se_win_prob /
|
||||
(winP_a / (1 - winP_a))) /
|
||||
(1 + exp(log(winP_a / (1 - winP_a)) - qnorm(1 - alpha / 2) *
|
||||
se_win_prob / (winP_a / (1 - winP_a))))
|
||||
|
||||
ci_lo <-
|
||||
exp(log(winP_b / (1 - winP_b)) + qnorm(1 - alpha / 2) * se_win_prob /
|
||||
(winP_b / (1 - winP_b))) /
|
||||
(1 + exp(log(winP_b / (1 - winP_b)) + qnorm(1 - alpha / 2) *
|
||||
se_win_prob / (winP_b / (1 - winP_b))))
|
||||
|
||||
test_stat <-
|
||||
abs(log(winP_a / (1 - winP_a))) / (se_win_prob / (winP_a * (1 - winP_a)))
|
||||
p_val <- 2 * (1 - pnorm(test_stat))
|
||||
|
||||
nnt <- 1 / (winP_a - 0.5)
|
||||
|
||||
ss_n <- NA
|
||||
|
||||
if (sample.size) {
|
||||
ss_n <-
|
||||
ceiling((group.ratio + 1) / group.ratio *
|
||||
(qnorm(1 - alpha / 2) + qnorm(1 - beta)) ^ 2 *
|
||||
(var_win_frac_a + group.ratio * var_win_frac_b) /
|
||||
(winP_a * (1 - winP_a) * log(winP_a / (1 - winP_a))) ^ 2
|
||||
)
|
||||
}
|
||||
|
||||
out <- list(list_cum=list_cum,
|
||||
group_levels=group_levels,
|
||||
sum_a=sum_a,
|
||||
sum_b=sum_b,
|
||||
winP_a=winP_a,
|
||||
winP_b=winP_b,
|
||||
var_win_frac_a=var_win_frac_a,
|
||||
var_win_frac_b=var_win_frac_b,
|
||||
var_win_prob=var_win_prob,
|
||||
se_win_prob=se_win_prob,
|
||||
conf.int=c(ci_lo,ci_up),
|
||||
test_stat=test_stat,
|
||||
p_val=p_val,
|
||||
nnt=nnt,
|
||||
ss_n=ss_n,
|
||||
param.record = list(
|
||||
data = data,
|
||||
response = response,
|
||||
group = group,
|
||||
alpha = alpha,
|
||||
beta = beta,
|
||||
group.ratio = group.ratio,
|
||||
sample.size = sample.size,
|
||||
print.tables = print.tables,
|
||||
dec = dec
|
||||
)
|
||||
)
|
||||
class(out) <- c("win_Prop", class(out))
|
||||
return(out)
|
||||
}
|
||||
|
||||
|
||||
print.win_Prop <- function (x, ...) {
|
||||
args <- list(...)
|
||||
|
||||
cat("\t Zou et al's winP (doi: 10.1161/STROKEAHA.121.037744) \n\n")
|
||||
cat(
|
||||
sprintf(
|
||||
"Probability of a random observation in %s group \nwill have a higher response score than a random\nobservation in %s group:\n\n",
|
||||
x$group_levels[2],
|
||||
x$group_levels[1]
|
||||
)
|
||||
)
|
||||
|
||||
cat(" ")
|
||||
|
||||
cat(
|
||||
sprintf(
|
||||
"\t winP: %2.3f (%2.3f, %2.3f) p=%1.4f",
|
||||
x$winP_a,
|
||||
x$conf.int[1],
|
||||
x$conf.int[2],
|
||||
x$p_val
|
||||
)
|
||||
)
|
||||
|
||||
cat("\n")
|
||||
|
||||
cat("--------------------------------------------\n\n")
|
||||
|
||||
cat(sprintf("The numbers needed to treat (NNT) are: %s\n\n",
|
||||
ceiling(x$nnt)))
|
||||
|
||||
cat("\n")
|
||||
|
||||
if (x$param.record$sample.size) {
|
||||
cat("--------------------------------------------\n\n")
|
||||
|
||||
cat(
|
||||
sprintf(
|
||||
"\tWith %s/%s ratio = %s and beta = %s
|
||||
the sample size needed is: %s\n\n",
|
||||
x$group_levels[1],
|
||||
x$group_levels[2],
|
||||
x$param.record$group.ratio,
|
||||
x$param.record$beta,
|
||||
x$ss_n
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
cat("\n")
|
||||
|
||||
if (x$param.record$print.tables) {
|
||||
cat("--------------------------------------------\n\n")
|
||||
|
||||
lc <- lapply(x$list_cum,function(i,t = c("prop","win_frac")){
|
||||
i[t] <- round(i[t],x$param.record$dec)
|
||||
i[,!names(i) == x$param.record$group]
|
||||
})
|
||||
|
||||
for (i in x$group_levels) {
|
||||
tab <- knitr::kable(lc[[i]], row.names = FALSE)
|
||||
cat(sprintf("Results for the %s group:\n", i))
|
||||
cat(sprintf("\t%s\n",
|
||||
tab))
|
||||
cat("\n")
|
||||
}
|
||||
}
|
||||
return(invisible(x))
|
||||
}
|
||||
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="index.html">stRoke</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.5</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.6</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -26,7 +26,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">stRoke</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.5</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.6</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
@ -215,12 +215,12 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
||||
<span> variables <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"hypertension"</span>, <span class="st">"diabetes"</span>, <span class="st">"civil"</span><span class="op">)</span><span class="op">)</span></span>
|
||||
<span><span class="co">#> Waiting for profiling to be done...</span></span>
|
||||
<span><span class="co">#> $`Table 1`</span></span>
|
||||
<span><span class="co">#> <div id="uhbypdnlsm" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;"></span></span>
|
||||
<span><span class="co">#> <div id="ggwrxnkhaw" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;"></span></span>
|
||||
<span><span class="co">#> <style>html {</span></span>
|
||||
<span><span class="co">#> font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_table {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_table {</span></span>
|
||||
<span><span class="co">#> display: table;</span></span>
|
||||
<span><span class="co">#> border-collapse: collapse;</span></span>
|
||||
<span><span class="co">#> margin-left: auto;</span></span>
|
||||
@ -245,7 +245,7 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
||||
<span><span class="co">#> border-left-color: #D3D3D3;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_heading {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_heading {</span></span>
|
||||
<span><span class="co">#> background-color: #FFFFFF;</span></span>
|
||||
<span><span class="co">#> text-align: center;</span></span>
|
||||
<span><span class="co">#> border-bottom-color: #FFFFFF;</span></span>
|
||||
@ -257,12 +257,12 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
||||
<span><span class="co">#> border-right-color: #D3D3D3;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_caption {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_caption {</span></span>
|
||||
<span><span class="co">#> padding-top: 4px;</span></span>
|
||||
<span><span class="co">#> padding-bottom: 4px;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_title {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_title {</span></span>
|
||||
<span><span class="co">#> color: #333333;</span></span>
|
||||
<span><span class="co">#> font-size: 125%;</span></span>
|
||||
<span><span class="co">#> font-weight: initial;</span></span>
|
||||
@ -274,7 +274,7 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
||||
<span><span class="co">#> border-bottom-width: 0;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_subtitle {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_subtitle {</span></span>
|
||||
<span><span class="co">#> color: #333333;</span></span>
|
||||
<span><span class="co">#> font-size: 85%;</span></span>
|
||||
<span><span class="co">#> font-weight: initial;</span></span>
|
||||
@ -286,13 +286,13 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
||||
<span><span class="co">#> border-top-width: 0;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_bottom_border {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_bottom_border {</span></span>
|
||||
<span><span class="co">#> border-bottom-style: solid;</span></span>
|
||||
<span><span class="co">#> border-bottom-width: 2px;</span></span>
|
||||
<span><span class="co">#> border-bottom-color: #D3D3D3;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_col_headings {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_col_headings {</span></span>
|
||||
<span><span class="co">#> border-top-style: solid;</span></span>
|
||||
<span><span class="co">#> border-top-width: 2px;</span></span>
|
||||
<span><span class="co">#> border-top-color: #D3D3D3;</span></span>
|
||||
@ -307,7 +307,7 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
||||
<span><span class="co">#> border-right-color: #D3D3D3;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_col_heading {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_col_heading {</span></span>
|
||||
<span><span class="co">#> color: #333333;</span></span>
|
||||
<span><span class="co">#> background-color: #FFFFFF;</span></span>
|
||||
<span><span class="co">#> font-size: 100%;</span></span>
|
||||
@ -327,7 +327,7 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
||||
<span><span class="co">#> overflow-x: hidden;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_column_spanner_outer {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_column_spanner_outer {</span></span>
|
||||
<span><span class="co">#> color: #333333;</span></span>
|
||||
<span><span class="co">#> background-color: #FFFFFF;</span></span>
|
||||
<span><span class="co">#> font-size: 100%;</span></span>
|
||||
@ -339,15 +339,15 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
||||
<span><span class="co">#> padding-right: 4px;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_column_spanner_outer:first-child {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_column_spanner_outer:first-child {</span></span>
|
||||
<span><span class="co">#> padding-left: 0;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_column_spanner_outer:last-child {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_column_spanner_outer:last-child {</span></span>
|
||||
<span><span class="co">#> padding-right: 0;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_column_spanner {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_column_spanner {</span></span>
|
||||
<span><span class="co">#> border-bottom-style: solid;</span></span>
|
||||
<span><span class="co">#> border-bottom-width: 2px;</span></span>
|
||||
<span><span class="co">#> border-bottom-color: #D3D3D3;</span></span>
|
||||
@ -359,7 +359,7 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
||||
<span><span class="co">#> width: 100%;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_group_heading {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_group_heading {</span></span>
|
||||
<span><span class="co">#> padding-top: 8px;</span></span>
|
||||
<span><span class="co">#> padding-bottom: 8px;</span></span>
|
||||
<span><span class="co">#> padding-left: 5px;</span></span>
|
||||
@ -385,7 +385,7 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
||||
<span><span class="co">#> text-align: left;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_empty_group_heading {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_empty_group_heading {</span></span>
|
||||
<span><span class="co">#> padding: 0.5px;</span></span>
|
||||
<span><span class="co">#> color: #333333;</span></span>
|
||||
<span><span class="co">#> background-color: #FFFFFF;</span></span>
|
||||
@ -400,15 +400,15 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
||||
<span><span class="co">#> vertical-align: middle;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_from_md > :first-child {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_from_md > :first-child {</span></span>
|
||||
<span><span class="co">#> margin-top: 0;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_from_md > :last-child {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_from_md > :last-child {</span></span>
|
||||
<span><span class="co">#> margin-bottom: 0;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_row {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_row {</span></span>
|
||||
<span><span class="co">#> padding-top: 8px;</span></span>
|
||||
<span><span class="co">#> padding-bottom: 8px;</span></span>
|
||||
<span><span class="co">#> padding-left: 5px;</span></span>
|
||||
@ -427,7 +427,7 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
||||
<span><span class="co">#> overflow-x: hidden;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_stub {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_stub {</span></span>
|
||||
<span><span class="co">#> color: #333333;</span></span>
|
||||
<span><span class="co">#> background-color: #FFFFFF;</span></span>
|
||||
<span><span class="co">#> font-size: 100%;</span></span>
|
||||
@ -440,7 +440,7 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
||||
<span><span class="co">#> padding-right: 5px;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_stub_row_group {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_stub_row_group {</span></span>
|
||||
<span><span class="co">#> color: #333333;</span></span>
|
||||
<span><span class="co">#> background-color: #FFFFFF;</span></span>
|
||||
<span><span class="co">#> font-size: 100%;</span></span>
|
||||
@ -454,11 +454,11 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
||||
<span><span class="co">#> vertical-align: top;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_row_group_first td {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_row_group_first td {</span></span>
|
||||
<span><span class="co">#> border-top-width: 2px;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_summary_row {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_summary_row {</span></span>
|
||||
<span><span class="co">#> color: #333333;</span></span>
|
||||
<span><span class="co">#> background-color: #FFFFFF;</span></span>
|
||||
<span><span class="co">#> text-transform: inherit;</span></span>
|
||||
@ -468,16 +468,16 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
||||
<span><span class="co">#> padding-right: 5px;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_first_summary_row {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_first_summary_row {</span></span>
|
||||
<span><span class="co">#> border-top-style: solid;</span></span>
|
||||
<span><span class="co">#> border-top-color: #D3D3D3;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_first_summary_row.thick {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_first_summary_row.thick {</span></span>
|
||||
<span><span class="co">#> border-top-width: 2px;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_last_summary_row {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_last_summary_row {</span></span>
|
||||
<span><span class="co">#> padding-top: 8px;</span></span>
|
||||
<span><span class="co">#> padding-bottom: 8px;</span></span>
|
||||
<span><span class="co">#> padding-left: 5px;</span></span>
|
||||
@ -487,7 +487,7 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
||||
<span><span class="co">#> border-bottom-color: #D3D3D3;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_grand_summary_row {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_grand_summary_row {</span></span>
|
||||
<span><span class="co">#> color: #333333;</span></span>
|
||||
<span><span class="co">#> background-color: #FFFFFF;</span></span>
|
||||
<span><span class="co">#> text-transform: inherit;</span></span>
|
||||
@ -497,7 +497,7 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
||||
<span><span class="co">#> padding-right: 5px;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_first_grand_summary_row {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_first_grand_summary_row {</span></span>
|
||||
<span><span class="co">#> padding-top: 8px;</span></span>
|
||||
<span><span class="co">#> padding-bottom: 8px;</span></span>
|
||||
<span><span class="co">#> padding-left: 5px;</span></span>
|
||||
@ -507,11 +507,11 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
||||
<span><span class="co">#> border-top-color: #D3D3D3;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_striped {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_striped {</span></span>
|
||||
<span><span class="co">#> background-color: rgba(128, 128, 128, 0.05);</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_table_body {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_table_body {</span></span>
|
||||
<span><span class="co">#> border-top-style: solid;</span></span>
|
||||
<span><span class="co">#> border-top-width: 2px;</span></span>
|
||||
<span><span class="co">#> border-top-color: #D3D3D3;</span></span>
|
||||
@ -520,7 +520,7 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
||||
<span><span class="co">#> border-bottom-color: #D3D3D3;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_footnotes {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_footnotes {</span></span>
|
||||
<span><span class="co">#> color: #333333;</span></span>
|
||||
<span><span class="co">#> background-color: #FFFFFF;</span></span>
|
||||
<span><span class="co">#> border-bottom-style: none;</span></span>
|
||||
@ -534,7 +534,7 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
||||
<span><span class="co">#> border-right-color: #D3D3D3;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_footnote {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_footnote {</span></span>
|
||||
<span><span class="co">#> margin: 0px;</span></span>
|
||||
<span><span class="co">#> font-size: 90%;</span></span>
|
||||
<span><span class="co">#> padding-left: 4px;</span></span>
|
||||
@ -543,7 +543,7 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
||||
<span><span class="co">#> padding-right: 5px;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_sourcenotes {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_sourcenotes {</span></span>
|
||||
<span><span class="co">#> color: #333333;</span></span>
|
||||
<span><span class="co">#> background-color: #FFFFFF;</span></span>
|
||||
<span><span class="co">#> border-bottom-style: none;</span></span>
|
||||
@ -557,7 +557,7 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
||||
<span><span class="co">#> border-right-color: #D3D3D3;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_sourcenote {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_sourcenote {</span></span>
|
||||
<span><span class="co">#> font-size: 90%;</span></span>
|
||||
<span><span class="co">#> padding-top: 4px;</span></span>
|
||||
<span><span class="co">#> padding-bottom: 4px;</span></span>
|
||||
@ -565,64 +565,64 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
||||
<span><span class="co">#> padding-right: 5px;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_left {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_left {</span></span>
|
||||
<span><span class="co">#> text-align: left;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_center {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_center {</span></span>
|
||||
<span><span class="co">#> text-align: center;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_right {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_right {</span></span>
|
||||
<span><span class="co">#> text-align: right;</span></span>
|
||||
<span><span class="co">#> font-variant-numeric: tabular-nums;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_font_normal {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_font_normal {</span></span>
|
||||
<span><span class="co">#> font-weight: normal;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_font_bold {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_font_bold {</span></span>
|
||||
<span><span class="co">#> font-weight: bold;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_font_italic {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_font_italic {</span></span>
|
||||
<span><span class="co">#> font-style: italic;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_super {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_super {</span></span>
|
||||
<span><span class="co">#> font-size: 65%;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_footnote_marks {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_footnote_marks {</span></span>
|
||||
<span><span class="co">#> font-style: italic;</span></span>
|
||||
<span><span class="co">#> font-weight: normal;</span></span>
|
||||
<span><span class="co">#> font-size: 75%;</span></span>
|
||||
<span><span class="co">#> vertical-align: 0.4em;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_asterisk {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_asterisk {</span></span>
|
||||
<span><span class="co">#> font-size: 100%;</span></span>
|
||||
<span><span class="co">#> vertical-align: 0;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_indent_1 {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_indent_1 {</span></span>
|
||||
<span><span class="co">#> text-indent: 5px;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_indent_2 {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_indent_2 {</span></span>
|
||||
<span><span class="co">#> text-indent: 10px;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_indent_3 {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_indent_3 {</span></span>
|
||||
<span><span class="co">#> text-indent: 15px;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_indent_4 {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_indent_4 {</span></span>
|
||||
<span><span class="co">#> text-indent: 20px;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> #uhbypdnlsm .gt_indent_5 {</span></span>
|
||||
<span><span class="co">#> #ggwrxnkhaw .gt_indent_5 {</span></span>
|
||||
<span><span class="co">#> text-indent: 25px;</span></span>
|
||||
<span><span class="co">#> }</span></span>
|
||||
<span><span class="co">#> </style></span></span>
|
||||
@ -672,34 +672,12 @@ model plot (with <code><a href="../reference/ci_plot.html">stRoke::ci_plot()</a>
|
||||
<pre><code><span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> $`Figure 2`</span></span></code></pre>
|
||||
<p><img src="toolbox_files/figure-html/generic_stroke-example-2.png" width="700"></p>
|
||||
<p>You can make a combined plot of the ppplot elements with
|
||||
<code><a href="https://patchwork.data-imaginist.com" class="external-link">library(patchwork)</a></code> and use <code><a href="../reference/gt_plot.html">gt_plot()</a></code> to plot
|
||||
gt elements.</p>
|
||||
<div class="sourceCode" id="cb9"><pre class="downlit sourceCode r">
|
||||
<code class="sourceCode R"><span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">require</a></span><span class="op">(</span><span class="va"><a href="https://patchwork.data-imaginist.com" class="external-link">patchwork</a></span><span class="op">)</span></span>
|
||||
<span></span>
|
||||
<span><span class="fu"><a href="https://rdrr.io/r/utils/data.html" class="external-link">data</a></span><span class="op">(</span><span class="va">talos</span><span class="op">)</span></span>
|
||||
<span><span class="va">talos</span><span class="op">[</span>, <span class="st">"alone"</span><span class="op">]</span> <span class="op"><-</span></span>
|
||||
<span> <span class="fu"><a href="https://rdrr.io/r/base/factor.html" class="external-link">factor</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/ifelse.html" class="external-link">ifelse</a></span><span class="op">(</span><span class="va">talos</span><span class="op">[</span>, <span class="st">"civil"</span><span class="op">]</span> <span class="op">==</span> <span class="st">"alone"</span>, <span class="st">"yes"</span>, <span class="st">"no"</span><span class="op">)</span><span class="op">)</span></span>
|
||||
<span><span class="va">talos</span><span class="op">[</span>, <span class="st">"placebo"</span><span class="op">]</span> <span class="op"><-</span></span>
|
||||
<span> <span class="fu"><a href="https://rdrr.io/r/base/factor.html" class="external-link">factor</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/ifelse.html" class="external-link">ifelse</a></span><span class="op">(</span><span class="va">talos</span><span class="op">[</span>, <span class="st">"rtreat"</span><span class="op">]</span> <span class="op">==</span> <span class="st">"Placebo"</span>, <span class="st">"yes"</span>, <span class="st">"no"</span><span class="op">)</span><span class="op">)</span></span>
|
||||
<span><span class="va">l</span> <span class="op"><-</span></span>
|
||||
<span> <span class="fu"><a href="../reference/generic_stroke.html">generic_stroke</a></span><span class="op">(</span></span>
|
||||
<span> df <span class="op">=</span> <span class="va">talos</span>,</span>
|
||||
<span> group <span class="op">=</span> <span class="st">"placebo"</span>,</span>
|
||||
<span> score <span class="op">=</span> <span class="st">"mrs_6"</span>,</span>
|
||||
<span> variables <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"hypertension"</span>, <span class="st">"diabetes"</span>, <span class="st">"alone"</span><span class="op">)</span></span>
|
||||
<span> <span class="op">)</span></span>
|
||||
<span></span>
|
||||
<span><span class="co"># l[[1]] |> gt_plot() </span></span>
|
||||
<span></span>
|
||||
<span><span class="va">l</span><span class="op">[[</span><span class="fl">2</span><span class="op">]</span><span class="op">]</span> <span class="op">+</span> <span class="va">l</span><span class="op">[[</span><span class="fl">3</span><span class="op">]</span><span class="op">]</span></span></code></pre></div>
|
||||
</div>
|
||||
<div class="section level4">
|
||||
<h4 id="index_plot">index_plot()<a class="anchor" aria-label="anchor" href="#index_plot"></a>
|
||||
</h4>
|
||||
<p>Used for plotting scores from a multi dimensional patient test.</p>
|
||||
<div class="sourceCode" id="cb10"><pre class="downlit sourceCode r">
|
||||
<div class="sourceCode" id="cb9"><pre class="downlit sourceCode r">
|
||||
<code class="sourceCode R"><span><span class="fu"><a href="../reference/index_plot.html">index_plot</a></span><span class="op">(</span><span class="fu">stRoke</span><span class="fu">::</span><span class="va"><a href="../reference/score.html">score</a></span><span class="op">[</span><span class="va">score</span><span class="op">$</span><span class="va">event</span> <span class="op">==</span> <span class="st">"A"</span>, <span class="op">]</span><span class="op">)</span></span></code></pre></div>
|
||||
<p><img src="toolbox_files/figure-html/index_plot-example-1.png" width="700"></p>
|
||||
</div>
|
||||
@ -712,6 +690,316 @@ Based on <code><a href="https://ouhscbbmc.github.io/REDCapR/" class="external-li
|
||||
<p>Please see <a href="https://agdamsbo.github.io/stRoke/articles/redcap.html" class="external-link">the
|
||||
vignette on REDCap</a>.</p>
|
||||
</div>
|
||||
<div class="section level4">
|
||||
<h4 id="win_prob">win_prob()<a class="anchor" aria-label="anchor" href="#win_prob"></a>
|
||||
</h4>
|
||||
<p>The <code><a href="../reference/win_prob.html">win_prob()</a></code> is an implementation of the Tournament
|
||||
Method for calculating the probability of winning as suggested by <a href="https://doi.org/10.1161/STROKEAHA.121.037744" class="external-link">Zou et al 2022</a>.
|
||||
The authors has included a spreadsheet as supplementary materials. This
|
||||
function aims to mimic that functionality. The function also includes a
|
||||
<code><a href="https://rdrr.io/r/base/print.html" class="external-link">print()</a></code> extension for nice printing.</p>
|
||||
<div class="sourceCode" id="cb10"><pre class="downlit sourceCode r">
|
||||
<code class="sourceCode R"><span><span class="fu"><a href="../reference/win_prob.html">win_prob</a></span><span class="op">(</span></span>
|
||||
<span> data <span class="op">=</span> <span class="fu">stRoke</span><span class="fu">::</span><span class="va"><a href="../reference/talos.html">talos</a></span>,</span>
|
||||
<span> response <span class="op">=</span> <span class="st">"mrs_6"</span>,</span>
|
||||
<span> group <span class="op">=</span> <span class="st">"rtreat"</span>,</span>
|
||||
<span> sample.size <span class="op">=</span> <span class="cn">TRUE</span>,</span>
|
||||
<span> print.tables <span class="op">=</span> <span class="cn">TRUE</span></span>
|
||||
<span><span class="op">)</span></span>
|
||||
<span><span class="co">#> $list_cum</span></span>
|
||||
<span><span class="co">#> $list_cum$Active</span></span>
|
||||
<span><span class="co">#> mrs_6 rtreat Freq prop overall_rank rank win_frac</span></span>
|
||||
<span><span class="co">#> 1 0 Active 14 0.17721519 175.0 72.5 0.847107438</span></span>
|
||||
<span><span class="co">#> 2 1 Active 29 0.36708861 113.5 51.0 0.516528926</span></span>
|
||||
<span><span class="co">#> 3 2 Active 22 0.27848101 49.0 25.5 0.194214876</span></span>
|
||||
<span><span class="co">#> 4 3 Active 9 0.11392405 15.0 10.0 0.041322314</span></span>
|
||||
<span><span class="co">#> 5 4 Active 3 0.03797468 7.0 4.0 0.024793388</span></span>
|
||||
<span><span class="co">#> 6 6 Active 2 0.02531646 2.5 1.5 0.008264463</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> $list_cum$Placebo</span></span>
|
||||
<span><span class="co">#> mrs_6 rtreat Freq prop overall_rank rank win_frac</span></span>
|
||||
<span><span class="co">#> 7 0 Placebo 37 0.30578512 175.0 103.0 0.91139241</span></span>
|
||||
<span><span class="co">#> 8 1 Placebo 43 0.35537190 113.5 63.0 0.63924051</span></span>
|
||||
<span><span class="co">#> 9 2 Placebo 35 0.28925620 49.0 24.0 0.31645570</span></span>
|
||||
<span><span class="co">#> 10 3 Placebo 2 0.01652893 15.0 5.5 0.12025316</span></span>
|
||||
<span><span class="co">#> 11 4 Placebo 2 0.01652893 7.0 3.5 0.04430380</span></span>
|
||||
<span><span class="co">#> 12 6 Placebo 2 0.01652893 2.5 1.5 0.01265823</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> $group_levels</span></span>
|
||||
<span><span class="co">#> [1] "Active" "Placebo"</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> $sum_a</span></span>
|
||||
<span><span class="co">#> [1] 79</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> $sum_b</span></span>
|
||||
<span><span class="co">#> [1] 121</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> $winP_a</span></span>
|
||||
<span><span class="co">#> [1] 0.3996757</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> $winP_b</span></span>
|
||||
<span><span class="co">#> [1] 0.6003243</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> $var_win_frac_a</span></span>
|
||||
<span><span class="co">#> [1] 0.07609113</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> $var_win_frac_b</span></span>
|
||||
<span><span class="co">#> [1] 0.06806341</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> $var_win_prob</span></span>
|
||||
<span><span class="co">#> [1] 0.001525686</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> $se_win_prob</span></span>
|
||||
<span><span class="co">#> [1] 0.03906004</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> $conf.int</span></span>
|
||||
<span><span class="co">#> [1] 0.6124886 0.3724300</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> $test_stat</span></span>
|
||||
<span><span class="co">#> [1] 2.498962</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> $p_val</span></span>
|
||||
<span><span class="co">#> [1] 0.01245577</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> $nnt</span></span>
|
||||
<span><span class="co">#> [1] -9.967675</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> $ss_n</span></span>
|
||||
<span><span class="co">#> [1] 238</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> $param.record</span></span>
|
||||
<span><span class="co">#> $param.record$data</span></span>
|
||||
<span><span class="co">#> rtreat mrs_1 mrs_6 hypertension diabetes civil</span></span>
|
||||
<span><span class="co">#> 38 Active 1 1 no no partner</span></span>
|
||||
<span><span class="co">#> 434 Active 1 1 yes no partner</span></span>
|
||||
<span><span class="co">#> 588 Active 2 2 yes no partner</span></span>
|
||||
<span><span class="co">#> 42 Active 0 0 yes no partner</span></span>
|
||||
<span><span class="co">#> 160 Placebo 1 1 yes no partner</span></span>
|
||||
<span><span class="co">#> 174 Active 0 1 yes no alone</span></span>
|
||||
<span><span class="co">#> 11 Placebo 2 1 yes yes alone</span></span>
|
||||
<span><span class="co">#> 601 Placebo 1 1 no no partner</span></span>
|
||||
<span><span class="co">#> 412 Active 0 0 yes no partner</span></span>
|
||||
<span><span class="co">#> 88 Placebo 1 1 yes yes partner</span></span>
|
||||
<span><span class="co">#> 56 Placebo 0 0 no no alone</span></span>
|
||||
<span><span class="co">#> 235 Placebo 2 1 yes yes alone</span></span>
|
||||
<span><span class="co">#> 205 Active 3 3 no no partner</span></span>
|
||||
<span><span class="co">#> 62 Active 2 2 yes no alone</span></span>
|
||||
<span><span class="co">#> 593 Placebo 2 2 no no alone</span></span>
|
||||
<span><span class="co">#> 143 Active 2 1 yes no partner</span></span>
|
||||
<span><span class="co">#> 520 Active 2 2 no yes partner</span></span>
|
||||
<span><span class="co">#> 144 Placebo 1 0 yes no partner</span></span>
|
||||
<span><span class="co">#> 383 Active 2 3 no no alone</span></span>
|
||||
<span><span class="co">#> 347 Placebo 1 0 yes yes partner</span></span>
|
||||
<span><span class="co">#> 346 Active 1 2 yes no partner</span></span>
|
||||
<span><span class="co">#> 318 Placebo 2 2 no no partner</span></span>
|
||||
<span><span class="co">#> 231 Placebo 2 2 no no partner</span></span>
|
||||
<span><span class="co">#> 190 Active 1 1 yes no partner</span></span>
|
||||
<span><span class="co">#> 287 Placebo 2 2 yes no partner</span></span>
|
||||
<span><span class="co">#> 633 Placebo 1 1 no no partner</span></span>
|
||||
<span><span class="co">#> 228 Placebo 4 3 yes no partner</span></span>
|
||||
<span><span class="co">#> 409 Active 1 2 yes no partner</span></span>
|
||||
<span><span class="co">#> 603 Placebo 2 1 no no alone</span></span>
|
||||
<span><span class="co">#> 628 Placebo 1 2 no no partner</span></span>
|
||||
<span><span class="co">#> 91 Active 1 0 yes no partner</span></span>
|
||||
<span><span class="co">#> 537 Placebo 4 4 no no partner</span></span>
|
||||
<span><span class="co">#> 75 Placebo 1 2 yes no partner</span></span>
|
||||
<span><span class="co">#> 282 Placebo 1 0 no no partner</span></span>
|
||||
<span><span class="co">#> 249 Active 1 1 no no alone</span></span>
|
||||
<span><span class="co">#> 72 Active 2 3 yes no partner</span></span>
|
||||
<span><span class="co">#> 222 Active 2 2 yes no partner</span></span>
|
||||
<span><span class="co">#> 258 Placebo 0 1 no no partner</span></span>
|
||||
<span><span class="co">#> 134 Active 4 4 no no partner</span></span>
|
||||
<span><span class="co">#> 117 Active 1 1 no yes partner</span></span>
|
||||
<span><span class="co">#> 377 Active 2 1 no no partner</span></span>
|
||||
<span><span class="co">#> 583 Placebo 3 2 yes no partner</span></span>
|
||||
<span><span class="co">#> 552 Active 3 1 yes no alone</span></span>
|
||||
<span><span class="co">#> 124 Placebo 2 2 yes yes partner</span></span>
|
||||
<span><span class="co">#> 189 Placebo 1 0 no yes partner</span></span>
|
||||
<span><span class="co">#> 521 Placebo 1 2 yes yes alone</span></span>
|
||||
<span><span class="co">#> 429 Active 2 1 no no partner</span></span>
|
||||
<span><span class="co">#> 203 Placebo 1 1 yes no partner</span></span>
|
||||
<span><span class="co">#> 172 Active 1 2 no no partner</span></span>
|
||||
<span><span class="co">#> 402 Placebo 2 2 yes no partner</span></span>
|
||||
<span><span class="co">#> 574 Placebo 1 1 yes no partner</span></span>
|
||||
<span><span class="co">#> 271 Active 4 3 no no partner</span></span>
|
||||
<span><span class="co">#> 50 Placebo 3 2 no no alone</span></span>
|
||||
<span><span class="co">#> 264 Active 4 2 no no alone</span></span>
|
||||
<span><span class="co">#> 571 Active 2 0 yes no partner</span></span>
|
||||
<span><span class="co">#> 239 Active 3 3 yes no alone</span></span>
|
||||
<span><span class="co">#> 262 Placebo 2 1 yes no partner</span></span>
|
||||
<span><span class="co">#> 236 Placebo 1 1 no no partner</span></span>
|
||||
<span><span class="co">#> 94 Placebo 1 1 no no partner</span></span>
|
||||
<span><span class="co">#> 275 Placebo 0 0 no no partner</span></span>
|
||||
<span><span class="co">#> 26 Placebo 2 4 no no alone</span></span>
|
||||
<span><span class="co">#> 476 Placebo 1 1 no no alone</span></span>
|
||||
<span><span class="co">#> 427 Active 2 3 yes no alone</span></span>
|
||||
<span><span class="co">#> 359 Placebo 1 2 yes no alone</span></span>
|
||||
<span><span class="co">#> 341 Active 4 3 yes no alone</span></span>
|
||||
<span><span class="co">#> 457 Active 1 1 yes yes partner</span></span>
|
||||
<span><span class="co">#> 485 Placebo 0 0 no no partner</span></span>
|
||||
<span><span class="co">#> 171 Placebo 2 2 no no partner</span></span>
|
||||
<span><span class="co">#> 97 Placebo 2 1 yes no partner</span></span>
|
||||
<span><span class="co">#> 635 Placebo 1 2 no no alone</span></span>
|
||||
<span><span class="co">#> 472 Placebo 1 0 yes no partner</span></span>
|
||||
<span><span class="co">#> 408 Active 1 1 yes yes partner</span></span>
|
||||
<span><span class="co">#> 158 Placebo 0 0 no no partner</span></span>
|
||||
<span><span class="co">#> 63 Placebo 1 0 no yes alone</span></span>
|
||||
<span><span class="co">#> 557 Active 2 2 no no partner</span></span>
|
||||
<span><span class="co">#> 73 Active 1 1 yes no partner</span></span>
|
||||
<span><span class="co">#> 425 Placebo 2 0 yes no partner</span></span>
|
||||
<span><span class="co">#> 423 Placebo 2 2 yes yes partner</span></span>
|
||||
<span><span class="co">#> 272 Active 2 1 yes no alone</span></span>
|
||||
<span><span class="co">#> 122 Active 1 0 no no partner</span></span>
|
||||
<span><span class="co">#> 370 Active 0 1 no no partner</span></span>
|
||||
<span><span class="co">#> 274 Placebo 0 0 no no partner</span></span>
|
||||
<span><span class="co">#> 407 Active 0 0 no no partner</span></span>
|
||||
<span><span class="co">#> 482 Placebo 1 1 no no partner</span></span>
|
||||
<span><span class="co">#> 586 Active 6 6 yes yes partner</span></span>
|
||||
<span><span class="co">#> 20 Placebo 1 2 no no alone</span></span>
|
||||
<span><span class="co">#> 568 Active 1 0 no no partner</span></span>
|
||||
<span><span class="co">#> 331 Placebo 1 1 no no alone</span></span>
|
||||
<span><span class="co">#> 133 Placebo 1 1 no no partner</span></span>
|
||||
<span><span class="co">#> 563 Active 4 4 yes no partner</span></span>
|
||||
<span><span class="co">#> 349 Placebo 1 2 yes yes alone</span></span>
|
||||
<span><span class="co">#> 381 Placebo 1 1 yes no partner</span></span>
|
||||
<span><span class="co">#> 549 Placebo 1 1 no no alone</span></span>
|
||||
<span><span class="co">#> 34 Active 1 1 no no alone</span></span>
|
||||
<span><span class="co">#> 33 Placebo 0 0 yes no alone</span></span>
|
||||
<span><span class="co">#> 531 Placebo 2 2 yes no alone</span></span>
|
||||
<span><span class="co">#> 389 Active 1 0 no no alone</span></span>
|
||||
<span><span class="co">#> 64 Active 1 1 yes yes alone</span></span>
|
||||
<span><span class="co">#> 428 Active 2 1 yes no partner</span></span>
|
||||
<span><span class="co">#> 403 Placebo 2 2 yes no alone</span></span>
|
||||
<span><span class="co">#> 343 Placebo 1 0 no no partner</span></span>
|
||||
<span><span class="co">#> 294 Active 2 2 no no alone</span></span>
|
||||
<span><span class="co">#> 76 Placebo 3 1 no no alone</span></span>
|
||||
<span><span class="co">#> 166 Placebo 1 0 yes no partner</span></span>
|
||||
<span><span class="co">#> 209 Placebo 0 1 yes no partner</span></span>
|
||||
<span><span class="co">#> 626 Active 2 2 yes no alone</span></span>
|
||||
<span><span class="co">#> 481 Active 5 3 no no partner</span></span>
|
||||
<span><span class="co">#> 376 Active 2 2 yes yes partner</span></span>
|
||||
<span><span class="co">#> 67 Active 3 2 no no partner</span></span>
|
||||
<span><span class="co">#> 130 Placebo 2 1 no no partner</span></span>
|
||||
<span><span class="co">#> 250 Active 2 1 yes no partner</span></span>
|
||||
<span><span class="co">#> 609 Active 2 2 no no partner</span></span>
|
||||
<span><span class="co">#> 545 Placebo 3 2 yes no partner</span></span>
|
||||
<span><span class="co">#> 226 Placebo 2 1 no no partner</span></span>
|
||||
<span><span class="co">#> 276 Placebo 1 2 no no partner</span></span>
|
||||
<span><span class="co">#> 305 Placebo 0 0 yes no partner</span></span>
|
||||
<span><span class="co">#> 202 Placebo 1 0 yes no alone</span></span>
|
||||
<span><span class="co">#> 245 Placebo 1 1 no no partner</span></span>
|
||||
<span><span class="co">#> 131 Active 3 1 no no partner</span></span>
|
||||
<span><span class="co">#> 505 Active 2 1 no no partner</span></span>
|
||||
<span><span class="co">#> 546 Placebo 2 2 yes no alone</span></span>
|
||||
<span><span class="co">#> 639 Placebo 1 1 yes yes partner</span></span>
|
||||
<span><span class="co">#> 219 Active 2 1 yes no partner</span></span>
|
||||
<span><span class="co">#> 244 Placebo 2 2 yes no alone</span></span>
|
||||
<span><span class="co">#> 348 Placebo 0 0 no no partner</span></span>
|
||||
<span><span class="co">#> 280 Placebo 0 0 yes no partner</span></span>
|
||||
<span><span class="co">#> 504 Placebo 2 2 yes no partner</span></span>
|
||||
<span><span class="co">#> 51 Placebo 1 1 no no alone</span></span>
|
||||
<span><span class="co">#> 493 Active 6 6 no no alone</span></span>
|
||||
<span><span class="co">#> 167 Placebo 0 1 yes no partner</span></span>
|
||||
<span><span class="co">#> 58 Placebo 1 0 no no partner</span></span>
|
||||
<span><span class="co">#> 169 Active 0 0 no no partner</span></span>
|
||||
<span><span class="co">#> 293 Active 1 0 no no partner</span></span>
|
||||
<span><span class="co">#> 334 Placebo 6 6 no no partner</span></span>
|
||||
<span><span class="co">#> 28 Active 2 2 yes no partner</span></span>
|
||||
<span><span class="co">#> 1 Placebo 0 0 yes no partner</span></span>
|
||||
<span><span class="co">#> 463 Active 2 1 yes no alone</span></span>
|
||||
<span><span class="co">#> 445 Placebo 1 2 yes no alone</span></span>
|
||||
<span><span class="co">#> 320 Placebo 1 2 yes yes alone</span></span>
|
||||
<span><span class="co">#> 500 Placebo 0 0 no no alone</span></span>
|
||||
<span><span class="co">#> 175 Placebo 1 2 yes no partner</span></span>
|
||||
<span><span class="co">#> 201 Placebo 0 0 yes no partner</span></span>
|
||||
<span><span class="co">#> 142 Active 2 0 no no partner</span></span>
|
||||
<span><span class="co">#> 278 Active 0 1 yes no alone</span></span>
|
||||
<span><span class="co">#> 181 Placebo 0 0 no no partner</span></span>
|
||||
<span><span class="co">#> 193 Placebo 2 1 yes no alone</span></span>
|
||||
<span><span class="co">#> 321 Active 2 0 no no partner</span></span>
|
||||
<span><span class="co">#> 598 Active 0 1 no no partner</span></span>
|
||||
<span><span class="co">#> 217 Placebo 0 0 yes no partner</span></span>
|
||||
<span><span class="co">#> 13 Active 1 1 yes no partner</span></span>
|
||||
<span><span class="co">#> 242 Placebo 2 0 yes no partner</span></span>
|
||||
<span><span class="co">#> 513 Placebo 1 1 no no partner</span></span>
|
||||
<span><span class="co">#> 518 Placebo 2 2 yes no partner</span></span>
|
||||
<span><span class="co">#> 304 Placebo 2 2 no no partner</span></span>
|
||||
<span><span class="co">#> 587 Placebo 1 2 no no alone</span></span>
|
||||
<span><span class="co">#> 497 Placebo 0 1 yes no partner</span></span>
|
||||
<span><span class="co">#> 296 Placebo 0 0 yes no partner</span></span>
|
||||
<span><span class="co">#> 526 Active 1 1 no no partner</span></span>
|
||||
<span><span class="co">#> 2 Placebo 2 1 no no partner</span></span>
|
||||
<span><span class="co">#> 627 Active 2 2 no yes partner</span></span>
|
||||
<span><span class="co">#> 126 Placebo 2 1 yes no partner</span></span>
|
||||
<span><span class="co">#> 420 Placebo 2 0 yes no partner</span></span>
|
||||
<span><span class="co">#> 392 Active 2 2 yes no partner</span></span>
|
||||
<span><span class="co">#> 522 Placebo 3 2 yes no alone</span></span>
|
||||
<span><span class="co">#> 312 Active 4 4 no yes partner</span></span>
|
||||
<span><span class="co">#> 9 Placebo 1 1 no no partner</span></span>
|
||||
<span><span class="co">#> 29 Placebo 2 2 no no alone</span></span>
|
||||
<span><span class="co">#> 7 Placebo 1 1 yes no partner</span></span>
|
||||
<span><span class="co">#> 49 Placebo 2 1 no yes partner</span></span>
|
||||
<span><span class="co">#> 439 Placebo 3 2 no no alone</span></span>
|
||||
<span><span class="co">#> 46 Active 0 0 yes no alone</span></span>
|
||||
<span><span class="co">#> 80 Active 1 1 no no partner</span></span>
|
||||
<span><span class="co">#> 237 Placebo 0 0 yes no partner</span></span>
|
||||
<span><span class="co">#> 306 Placebo 2 0 no no alone</span></span>
|
||||
<span><span class="co">#> 345 Placebo 0 0 yes no partner</span></span>
|
||||
<span><span class="co">#> 153 Active 2 2 no no partner</span></span>
|
||||
<span><span class="co">#> 98 Placebo 1 0 yes no partner</span></span>
|
||||
<span><span class="co">#> 44 Placebo 2 1 yes no partner</span></span>
|
||||
<span><span class="co">#> 458 Active 3 2 no no partner</span></span>
|
||||
<span><span class="co">#> 585 Placebo 1 1 yes no partner</span></span>
|
||||
<span><span class="co">#> 211 Placebo 3 2 no yes partner</span></span>
|
||||
<span><span class="co">#> 610 Active 1 1 no no alone</span></span>
|
||||
<span><span class="co">#> 310 Placebo 0 0 no no alone</span></span>
|
||||
<span><span class="co">#> 541 Active 4 2 yes no partner</span></span>
|
||||
<span><span class="co">#> 161 Placebo 1 1 no no partner</span></span>
|
||||
<span><span class="co">#> 641 Placebo 1 1 no no partner</span></span>
|
||||
<span><span class="co">#> 538 Placebo 1 1 no no partner</span></span>
|
||||
<span><span class="co">#> 281 Placebo 1 0 no no partner</span></span>
|
||||
<span><span class="co">#> 301 Active 3 2 yes no partner</span></span>
|
||||
<span><span class="co">#> 356 Active 3 2 no no alone</span></span>
|
||||
<span><span class="co">#> 59 Active 3 3 no no alone</span></span>
|
||||
<span><span class="co">#> 302 Placebo 1 0 yes no partner</span></span>
|
||||
<span><span class="co">#> 116 Active 1 0 no no partner</span></span>
|
||||
<span><span class="co">#> 547 Placebo 2 2 no no partner</span></span>
|
||||
<span><span class="co">#> 22 Placebo 2 1 no no partner</span></span>
|
||||
<span><span class="co">#> 517 Placebo 4 3 yes no partner</span></span>
|
||||
<span><span class="co">#> 344 Placebo 1 1 yes no partner</span></span>
|
||||
<span><span class="co">#> 48 Placebo 2 0 yes no alone</span></span>
|
||||
<span><span class="co">#> 100 Placebo 1 0 yes no alone</span></span>
|
||||
<span><span class="co">#> 93 Placebo 6 6 yes no alone</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> $param.record$response</span></span>
|
||||
<span><span class="co">#> [1] "mrs_6"</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> $param.record$group</span></span>
|
||||
<span><span class="co">#> [1] "rtreat"</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> $param.record$alpha</span></span>
|
||||
<span><span class="co">#> [1] 0.05</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> $param.record$beta</span></span>
|
||||
<span><span class="co">#> [1] 0.2</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> $param.record$group.ratio</span></span>
|
||||
<span><span class="co">#> [1] 1</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> $param.record$sample.size</span></span>
|
||||
<span><span class="co">#> [1] TRUE</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> $param.record$print.tables</span></span>
|
||||
<span><span class="co">#> [1] TRUE</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> $param.record$dec</span></span>
|
||||
<span><span class="co">#> [1] 3</span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> </span></span>
|
||||
<span><span class="co">#> attr(,"class")</span></span>
|
||||
<span><span class="co">#> [1] "win_Prop" "list"</span></span></code></pre></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">stRoke</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.5</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.6</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -26,7 +26,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">stRoke</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.5</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.6</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="index.html">stRoke</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.5</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.6</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -34,7 +34,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="index.html">stRoke</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.5</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.6</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">stRoke</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.5</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.6</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
@ -52,9 +52,20 @@
|
||||
</div>
|
||||
|
||||
<div class="section level2">
|
||||
<h2 class="pkg-version" data-toc-text="0.23.1.5" id="stroke-02315">stRoke 0.23.1.5<a class="anchor" aria-label="anchor" href="#stroke-02315"></a></h2>
|
||||
<h2 class="pkg-version" data-toc-text="23.1.6" id="stroke-2316">stRoke 23.1.6<a class="anchor" aria-label="anchor" href="#stroke-2316"></a></h2>
|
||||
<div class="section level3">
|
||||
<h3 id="release-on-cran-0-23-1-5">RELEASE ON CRAN<a class="anchor" aria-label="anchor" href="#release-on-cran-0-23-1-5"></a></h3>
|
||||
<h3 id="functions-23-1-6">Functions:<a class="anchor" aria-label="anchor" href="#functions-23-1-6"></a></h3>
|
||||
<ul><li>win_prop() added to implement the suggested methods in <a href="https://doi.org/10.1161/STROKEAHA.121.037744" class="external-link">DOI: 10.1161/STROKEAHA.121.037744</a>, as an implementation of “Tournament Methods” also found in <code><a href="https://rdrr.io/r/base/library.html" class="external-link">library(genodds)</a></code>. The function is based on the spreadsheet provided by the authors. A print.win_Prop is also added for printing.</li>
|
||||
</ul></div>
|
||||
<div class="section level3">
|
||||
<h3 id="notes-23-1-6">Notes:<a class="anchor" aria-label="anchor" href="#notes-23-1-6"></a></h3>
|
||||
<ul><li>23.1.5 failed on CRAN due to gt_plot(). This function has been dropped. Find it as as_ggplot() elsewhere.</li>
|
||||
</ul></div>
|
||||
</div>
|
||||
<div class="section level2">
|
||||
<h2 class="pkg-version" data-toc-text="23.1.5" id="stroke-2315">stRoke 23.1.5<a class="anchor" aria-label="anchor" href="#stroke-2315"></a></h2>
|
||||
<div class="section level3">
|
||||
<h3 id="release-on-cran-23-1-5">RELEASE ON CRAN<a class="anchor" aria-label="anchor" href="#release-on-cran-23-1-5"></a></h3>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section level2">
|
||||
|
@ -4,5 +4,5 @@ pkgdown_sha: ~
|
||||
articles:
|
||||
redcap: redcap.html
|
||||
toolbox: toolbox.html
|
||||
last_built: 2023-01-12T13:31Z
|
||||
last_built: 2023-01-18T08:30Z
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">stRoke</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.5</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.6</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 70 KiB |
@ -14,7 +14,7 @@ Title and axis labels can be added to the ggplot afterwards.'><!-- mathjax --><s
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">stRoke</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.5</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.6</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">stRoke</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.5</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.6</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">stRoke</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.5</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.6</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">stRoke</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.5</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.6</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -12,7 +12,7 @@ for testing purposes."><!-- mathjax --><script src="https://cdnjs.cloudflare.com
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">stRoke</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.5</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.6</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -12,7 +12,7 @@ provided filter."><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">stRoke</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.5</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.6</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -14,7 +14,7 @@ To dos: modify grottaBar and include as own function."><!-- mathjax --><script s
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">stRoke</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.5</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.6</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
@ -102,12 +102,12 @@ To dos: modify grottaBar and include as own function.</p>
|
||||
<span class="r-in"><span>variables <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"hypertension"</span>,<span class="st">"diabetes"</span>,<span class="st">"civil"</span><span class="op">)</span><span class="op">)</span></span></span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Waiting for profiling to be done...</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $`Table 1`</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <div id="pppmopgjpp" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;"></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <div id="fpwmtkvanx" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;"></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <style>html {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_table {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_table {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> display: table;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-collapse: collapse;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> margin-left: auto;</span>
|
||||
@ -132,7 +132,7 @@ To dos: modify grottaBar and include as own function.</p>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-left-color: #D3D3D3;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_heading {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_heading {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> background-color: #FFFFFF;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> text-align: center;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-bottom-color: #FFFFFF;</span>
|
||||
@ -144,12 +144,12 @@ To dos: modify grottaBar and include as own function.</p>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-right-color: #D3D3D3;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_caption {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_caption {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-top: 4px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-bottom: 4px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_title {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_title {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> color: #333333;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-size: 125%;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-weight: initial;</span>
|
||||
@ -161,7 +161,7 @@ To dos: modify grottaBar and include as own function.</p>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-bottom-width: 0;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_subtitle {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_subtitle {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> color: #333333;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-size: 85%;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-weight: initial;</span>
|
||||
@ -173,13 +173,13 @@ To dos: modify grottaBar and include as own function.</p>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-top-width: 0;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_bottom_border {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_bottom_border {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-bottom-style: solid;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-bottom-width: 2px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-bottom-color: #D3D3D3;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_col_headings {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_col_headings {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-top-style: solid;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-top-width: 2px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-top-color: #D3D3D3;</span>
|
||||
@ -194,7 +194,7 @@ To dos: modify grottaBar and include as own function.</p>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-right-color: #D3D3D3;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_col_heading {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_col_heading {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> color: #333333;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> background-color: #FFFFFF;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-size: 100%;</span>
|
||||
@ -214,7 +214,7 @@ To dos: modify grottaBar and include as own function.</p>
|
||||
<span class="r-out co"><span class="r-pr">#></span> overflow-x: hidden;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_column_spanner_outer {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_column_spanner_outer {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> color: #333333;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> background-color: #FFFFFF;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-size: 100%;</span>
|
||||
@ -226,15 +226,15 @@ To dos: modify grottaBar and include as own function.</p>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-right: 4px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_column_spanner_outer:first-child {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_column_spanner_outer:first-child {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-left: 0;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_column_spanner_outer:last-child {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_column_spanner_outer:last-child {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-right: 0;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_column_spanner {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_column_spanner {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-bottom-style: solid;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-bottom-width: 2px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-bottom-color: #D3D3D3;</span>
|
||||
@ -246,7 +246,7 @@ To dos: modify grottaBar and include as own function.</p>
|
||||
<span class="r-out co"><span class="r-pr">#></span> width: 100%;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_group_heading {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_group_heading {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-top: 8px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-bottom: 8px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-left: 5px;</span>
|
||||
@ -272,7 +272,7 @@ To dos: modify grottaBar and include as own function.</p>
|
||||
<span class="r-out co"><span class="r-pr">#></span> text-align: left;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_empty_group_heading {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_empty_group_heading {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding: 0.5px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> color: #333333;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> background-color: #FFFFFF;</span>
|
||||
@ -287,15 +287,15 @@ To dos: modify grottaBar and include as own function.</p>
|
||||
<span class="r-out co"><span class="r-pr">#></span> vertical-align: middle;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_from_md > :first-child {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_from_md > :first-child {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> margin-top: 0;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_from_md > :last-child {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_from_md > :last-child {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> margin-bottom: 0;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_row {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_row {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-top: 8px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-bottom: 8px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-left: 5px;</span>
|
||||
@ -314,7 +314,7 @@ To dos: modify grottaBar and include as own function.</p>
|
||||
<span class="r-out co"><span class="r-pr">#></span> overflow-x: hidden;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_stub {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_stub {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> color: #333333;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> background-color: #FFFFFF;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-size: 100%;</span>
|
||||
@ -327,7 +327,7 @@ To dos: modify grottaBar and include as own function.</p>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-right: 5px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_stub_row_group {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_stub_row_group {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> color: #333333;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> background-color: #FFFFFF;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-size: 100%;</span>
|
||||
@ -341,11 +341,11 @@ To dos: modify grottaBar and include as own function.</p>
|
||||
<span class="r-out co"><span class="r-pr">#></span> vertical-align: top;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_row_group_first td {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_row_group_first td {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-top-width: 2px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_summary_row {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_summary_row {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> color: #333333;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> background-color: #FFFFFF;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> text-transform: inherit;</span>
|
||||
@ -355,16 +355,16 @@ To dos: modify grottaBar and include as own function.</p>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-right: 5px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_first_summary_row {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_first_summary_row {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-top-style: solid;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-top-color: #D3D3D3;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_first_summary_row.thick {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_first_summary_row.thick {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-top-width: 2px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_last_summary_row {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_last_summary_row {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-top: 8px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-bottom: 8px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-left: 5px;</span>
|
||||
@ -374,7 +374,7 @@ To dos: modify grottaBar and include as own function.</p>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-bottom-color: #D3D3D3;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_grand_summary_row {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_grand_summary_row {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> color: #333333;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> background-color: #FFFFFF;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> text-transform: inherit;</span>
|
||||
@ -384,7 +384,7 @@ To dos: modify grottaBar and include as own function.</p>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-right: 5px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_first_grand_summary_row {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_first_grand_summary_row {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-top: 8px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-bottom: 8px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-left: 5px;</span>
|
||||
@ -394,11 +394,11 @@ To dos: modify grottaBar and include as own function.</p>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-top-color: #D3D3D3;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_striped {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_striped {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> background-color: rgba(128, 128, 128, 0.05);</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_table_body {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_table_body {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-top-style: solid;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-top-width: 2px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-top-color: #D3D3D3;</span>
|
||||
@ -407,7 +407,7 @@ To dos: modify grottaBar and include as own function.</p>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-bottom-color: #D3D3D3;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_footnotes {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_footnotes {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> color: #333333;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> background-color: #FFFFFF;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-bottom-style: none;</span>
|
||||
@ -421,7 +421,7 @@ To dos: modify grottaBar and include as own function.</p>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-right-color: #D3D3D3;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_footnote {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_footnote {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> margin: 0px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-size: 90%;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-left: 4px;</span>
|
||||
@ -430,7 +430,7 @@ To dos: modify grottaBar and include as own function.</p>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-right: 5px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_sourcenotes {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_sourcenotes {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> color: #333333;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> background-color: #FFFFFF;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-bottom-style: none;</span>
|
||||
@ -444,7 +444,7 @@ To dos: modify grottaBar and include as own function.</p>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-right-color: #D3D3D3;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_sourcenote {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_sourcenote {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-size: 90%;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-top: 4px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-bottom: 4px;</span>
|
||||
@ -452,64 +452,64 @@ To dos: modify grottaBar and include as own function.</p>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-right: 5px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_left {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_left {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> text-align: left;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_center {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_center {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> text-align: center;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_right {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_right {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> text-align: right;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-variant-numeric: tabular-nums;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_font_normal {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_font_normal {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-weight: normal;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_font_bold {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_font_bold {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-weight: bold;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_font_italic {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_font_italic {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-style: italic;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_super {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_super {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-size: 65%;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_footnote_marks {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_footnote_marks {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-style: italic;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-weight: normal;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-size: 75%;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> vertical-align: 0.4em;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_asterisk {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_asterisk {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-size: 100%;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> vertical-align: 0;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_indent_1 {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_indent_1 {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> text-indent: 5px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_indent_2 {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_indent_2 {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> text-indent: 10px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_indent_3 {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_indent_3 {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> text-indent: 15px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_indent_4 {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_indent_4 {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> text-indent: 20px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #pppmopgjpp .gt_indent_5 {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #fpwmtkvanx .gt_indent_5 {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> text-indent: 25px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </style></span>
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">stRoke</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.5</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.6</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
@ -103,11 +103,6 @@
|
||||
<dd>Generic stroke study outcome</dd>
|
||||
</dl><dl><dt>
|
||||
|
||||
<code><a href="gt_plot.html">gt_plot()</a></code>
|
||||
</dt>
|
||||
<dd>Plot a gt or gtsummary table as ggplot object</dd>
|
||||
</dl><dl><dt>
|
||||
|
||||
<code><a href="index_plot.html">index_plot()</a></code>
|
||||
</dt>
|
||||
<dd>Plot multidimensional cognitive test scores</dd>
|
||||
@ -141,6 +136,11 @@
|
||||
<code><a href="talos.html">talos</a></code>
|
||||
</dt>
|
||||
<dd>Data frame with sample of TALOS data</dd>
|
||||
</dl><dl><dt>
|
||||
|
||||
<code><a href="win_prob.html">win_prob()</a></code>
|
||||
</dt>
|
||||
<dd>Calculates the probability of winning</dd>
|
||||
</dl></div>
|
||||
</main></div>
|
||||
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 170 KiB After Width: | Height: | Size: 169 KiB |
@ -12,7 +12,7 @@ Includes option to facet."><!-- mathjax --><script src="https://cdnjs.cloudflare
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">stRoke</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.5</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.6</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -12,7 +12,7 @@ Alternative is to use attributes, eg from library(Hmisc).'><!-- mathjax --><scri
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">stRoke</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.5</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.6</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
@ -93,12 +93,12 @@ Alternative is to use attributes, eg from <code><a href="https://hbiostat.org/R/
|
||||
<span class="r-in"><span><span class="st">'[Intercept]'</span><span class="op">~</span><span class="st">"Intercept"</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="fu">stRoke</span><span class="fu">::</span><span class="va"><a href="talos.html">talos</a></span><span class="op">[</span><span class="va">vars</span><span class="op">]</span> <span class="op">|></span> </span></span>
|
||||
<span class="r-in"><span><span class="fu">gtsummary</span><span class="fu">::</span><span class="fu"><a href="https://www.danieldsjoberg.com/gtsummary/reference/tbl_summary.html" class="external-link">tbl_summary</a></span><span class="op">(</span>label <span class="op">=</span> <span class="fu">label_select</span><span class="op">(</span><span class="va">labels_all</span>,<span class="va">vars</span><span class="op">)</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <div id="uzfbteckhg" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;"></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <div id="kknlalywir" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;"></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <style>html {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_table {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_table {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> display: table;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-collapse: collapse;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> margin-left: auto;</span>
|
||||
@ -123,7 +123,7 @@ Alternative is to use attributes, eg from <code><a href="https://hbiostat.org/R/
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-left-color: #D3D3D3;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_heading {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_heading {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> background-color: #FFFFFF;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> text-align: center;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-bottom-color: #FFFFFF;</span>
|
||||
@ -135,12 +135,12 @@ Alternative is to use attributes, eg from <code><a href="https://hbiostat.org/R/
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-right-color: #D3D3D3;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_caption {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_caption {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-top: 4px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-bottom: 4px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_title {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_title {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> color: #333333;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-size: 125%;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-weight: initial;</span>
|
||||
@ -152,7 +152,7 @@ Alternative is to use attributes, eg from <code><a href="https://hbiostat.org/R/
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-bottom-width: 0;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_subtitle {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_subtitle {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> color: #333333;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-size: 85%;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-weight: initial;</span>
|
||||
@ -164,13 +164,13 @@ Alternative is to use attributes, eg from <code><a href="https://hbiostat.org/R/
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-top-width: 0;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_bottom_border {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_bottom_border {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-bottom-style: solid;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-bottom-width: 2px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-bottom-color: #D3D3D3;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_col_headings {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_col_headings {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-top-style: solid;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-top-width: 2px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-top-color: #D3D3D3;</span>
|
||||
@ -185,7 +185,7 @@ Alternative is to use attributes, eg from <code><a href="https://hbiostat.org/R/
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-right-color: #D3D3D3;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_col_heading {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_col_heading {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> color: #333333;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> background-color: #FFFFFF;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-size: 100%;</span>
|
||||
@ -205,7 +205,7 @@ Alternative is to use attributes, eg from <code><a href="https://hbiostat.org/R/
|
||||
<span class="r-out co"><span class="r-pr">#></span> overflow-x: hidden;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_column_spanner_outer {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_column_spanner_outer {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> color: #333333;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> background-color: #FFFFFF;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-size: 100%;</span>
|
||||
@ -217,15 +217,15 @@ Alternative is to use attributes, eg from <code><a href="https://hbiostat.org/R/
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-right: 4px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_column_spanner_outer:first-child {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_column_spanner_outer:first-child {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-left: 0;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_column_spanner_outer:last-child {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_column_spanner_outer:last-child {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-right: 0;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_column_spanner {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_column_spanner {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-bottom-style: solid;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-bottom-width: 2px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-bottom-color: #D3D3D3;</span>
|
||||
@ -237,7 +237,7 @@ Alternative is to use attributes, eg from <code><a href="https://hbiostat.org/R/
|
||||
<span class="r-out co"><span class="r-pr">#></span> width: 100%;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_group_heading {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_group_heading {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-top: 8px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-bottom: 8px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-left: 5px;</span>
|
||||
@ -263,7 +263,7 @@ Alternative is to use attributes, eg from <code><a href="https://hbiostat.org/R/
|
||||
<span class="r-out co"><span class="r-pr">#></span> text-align: left;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_empty_group_heading {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_empty_group_heading {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding: 0.5px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> color: #333333;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> background-color: #FFFFFF;</span>
|
||||
@ -278,15 +278,15 @@ Alternative is to use attributes, eg from <code><a href="https://hbiostat.org/R/
|
||||
<span class="r-out co"><span class="r-pr">#></span> vertical-align: middle;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_from_md > :first-child {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_from_md > :first-child {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> margin-top: 0;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_from_md > :last-child {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_from_md > :last-child {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> margin-bottom: 0;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_row {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_row {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-top: 8px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-bottom: 8px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-left: 5px;</span>
|
||||
@ -305,7 +305,7 @@ Alternative is to use attributes, eg from <code><a href="https://hbiostat.org/R/
|
||||
<span class="r-out co"><span class="r-pr">#></span> overflow-x: hidden;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_stub {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_stub {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> color: #333333;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> background-color: #FFFFFF;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-size: 100%;</span>
|
||||
@ -318,7 +318,7 @@ Alternative is to use attributes, eg from <code><a href="https://hbiostat.org/R/
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-right: 5px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_stub_row_group {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_stub_row_group {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> color: #333333;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> background-color: #FFFFFF;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-size: 100%;</span>
|
||||
@ -332,11 +332,11 @@ Alternative is to use attributes, eg from <code><a href="https://hbiostat.org/R/
|
||||
<span class="r-out co"><span class="r-pr">#></span> vertical-align: top;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_row_group_first td {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_row_group_first td {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-top-width: 2px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_summary_row {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_summary_row {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> color: #333333;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> background-color: #FFFFFF;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> text-transform: inherit;</span>
|
||||
@ -346,16 +346,16 @@ Alternative is to use attributes, eg from <code><a href="https://hbiostat.org/R/
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-right: 5px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_first_summary_row {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_first_summary_row {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-top-style: solid;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-top-color: #D3D3D3;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_first_summary_row.thick {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_first_summary_row.thick {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-top-width: 2px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_last_summary_row {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_last_summary_row {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-top: 8px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-bottom: 8px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-left: 5px;</span>
|
||||
@ -365,7 +365,7 @@ Alternative is to use attributes, eg from <code><a href="https://hbiostat.org/R/
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-bottom-color: #D3D3D3;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_grand_summary_row {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_grand_summary_row {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> color: #333333;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> background-color: #FFFFFF;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> text-transform: inherit;</span>
|
||||
@ -375,7 +375,7 @@ Alternative is to use attributes, eg from <code><a href="https://hbiostat.org/R/
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-right: 5px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_first_grand_summary_row {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_first_grand_summary_row {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-top: 8px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-bottom: 8px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-left: 5px;</span>
|
||||
@ -385,11 +385,11 @@ Alternative is to use attributes, eg from <code><a href="https://hbiostat.org/R/
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-top-color: #D3D3D3;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_striped {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_striped {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> background-color: rgba(128, 128, 128, 0.05);</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_table_body {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_table_body {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-top-style: solid;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-top-width: 2px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-top-color: #D3D3D3;</span>
|
||||
@ -398,7 +398,7 @@ Alternative is to use attributes, eg from <code><a href="https://hbiostat.org/R/
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-bottom-color: #D3D3D3;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_footnotes {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_footnotes {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> color: #333333;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> background-color: #FFFFFF;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-bottom-style: none;</span>
|
||||
@ -412,7 +412,7 @@ Alternative is to use attributes, eg from <code><a href="https://hbiostat.org/R/
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-right-color: #D3D3D3;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_footnote {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_footnote {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> margin: 0px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-size: 90%;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-left: 4px;</span>
|
||||
@ -421,7 +421,7 @@ Alternative is to use attributes, eg from <code><a href="https://hbiostat.org/R/
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-right: 5px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_sourcenotes {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_sourcenotes {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> color: #333333;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> background-color: #FFFFFF;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-bottom-style: none;</span>
|
||||
@ -435,7 +435,7 @@ Alternative is to use attributes, eg from <code><a href="https://hbiostat.org/R/
|
||||
<span class="r-out co"><span class="r-pr">#></span> border-right-color: #D3D3D3;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_sourcenote {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_sourcenote {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-size: 90%;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-top: 4px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-bottom: 4px;</span>
|
||||
@ -443,64 +443,64 @@ Alternative is to use attributes, eg from <code><a href="https://hbiostat.org/R/
|
||||
<span class="r-out co"><span class="r-pr">#></span> padding-right: 5px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_left {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_left {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> text-align: left;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_center {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_center {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> text-align: center;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_right {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_right {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> text-align: right;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-variant-numeric: tabular-nums;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_font_normal {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_font_normal {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-weight: normal;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_font_bold {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_font_bold {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-weight: bold;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_font_italic {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_font_italic {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-style: italic;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_super {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_super {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-size: 65%;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_footnote_marks {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_footnote_marks {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-style: italic;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-weight: normal;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-size: 75%;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> vertical-align: 0.4em;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_asterisk {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_asterisk {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> font-size: 100%;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> vertical-align: 0;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_indent_1 {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_indent_1 {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> text-indent: 5px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_indent_2 {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_indent_2 {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> text-indent: 10px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_indent_3 {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_indent_3 {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> text-indent: 15px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_indent_4 {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_indent_4 {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> text-indent: 20px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #uzfbteckhg .gt_indent_5 {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> #kknlalywir .gt_indent_5 {</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> text-indent: 25px;</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </style></span>
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">stRoke</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.5</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.6</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
@ -120,8 +120,8 @@ as borders in case of y!=NULL.</p></dd>
|
||||
<span class="r-in"><span><span class="va">x</span> <span class="op"><-</span> <span class="fl">1</span><span class="op">:</span><span class="fl">450</span></span></span>
|
||||
<span class="r-in"><span><span class="va">y</span> <span class="op"><-</span> <span class="fl">6</span><span class="op">:</span><span class="fl">750</span></span></span>
|
||||
<span class="r-in"><span><span class="fu"><a href="https://rdrr.io/r/base/summary.html" class="external-link">summary</a></span><span class="op">(</span><span class="fu">quantile_cut</span><span class="op">(</span><span class="va">aa</span>,groups<span class="op">=</span><span class="fl">4</span>,detail.list<span class="op">=</span><span class="cn">FALSE</span><span class="op">)</span><span class="op">)</span> <span class="co">## Cuts quartiles</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1,238] (238,494] (494,746] (746,999] </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 503 497 501 499 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1,255] (255,490] (490,727] (727,1e+03] </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 502 498 501 499 </span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
||||
|
@ -14,7 +14,7 @@ instruments."><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/lib
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">stRoke</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.5</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.6</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -12,7 +12,7 @@ five-dimensional cognitive test."><!-- mathjax --><script src="https://cdnjs.clo
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">stRoke</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.5</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.6</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">stRoke</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.5</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.6</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">stRoke</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.5</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.6</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">stRoke</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.5</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.6</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
443
docs/reference/win_prob.html
Normal file
443
docs/reference/win_prob.html
Normal file
@ -0,0 +1,443 @@
|
||||
<!DOCTYPE html>
|
||||
<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><meta name="description" content="Calculates the probability of winning (winP)"><title>Calculates the probability of winning — win_prob • stRoke</title><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.2.2/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.2.2/bootstrap.bundle.min.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- bootstrap-toc --><script src="https://cdn.jsdelivr.net/gh/afeld/bootstrap-toc@v1.0.1/dist/bootstrap-toc.min.js" integrity="sha256-4veVQbu7//Lk5TSmc7YV48MxtMy98e26cf5MrgZYnwo=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- search --><script src="https://cdnjs.cloudflare.com/ajax/libs/fuse.js/6.4.6/fuse.js" integrity="sha512-zv6Ywkjyktsohkbp9bb45V6tEMoWhzFzXis+LrMehmJZZSys19Yxf1dopHx7WzIKxr5tK2dVcYmaCk2uqdjF4A==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/autocomplete.js/0.38.0/autocomplete.jquery.min.js" integrity="sha512-GU9ayf+66Xx2TmpxqJpliWbT5PiGYxpaG8rfnBEk1LL8l1KGkRShhngwdXK1UgqhAzWpZHSiYPc09/NwDQIGyg==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/mark.min.js" integrity="sha512-5CYOlHXGh6QpOFA/TeTylKLWfB3ftPsde7AnmhuitiTX4K5SqCLBeKro6sPS8ilsz1Q4NRx3v8Ko2IBiszzdww==" crossorigin="anonymous"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="Calculates the probability of winning — win_prob"><meta property="og:description" content="Calculates the probability of winning (winP)"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
||||
<![endif]--></head><body>
|
||||
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
|
||||
|
||||
|
||||
<nav class="navbar fixed-top navbar-light navbar-expand-lg bg-light"><div class="container">
|
||||
|
||||
<a class="navbar-brand me-2" href="../index.html">stRoke</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.1.6</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div id="navbar" class="collapse navbar-collapse ms-3">
|
||||
<ul class="navbar-nav me-auto"><li class="active nav-item">
|
||||
<a class="nav-link" href="../reference/index.html">Reference</a>
|
||||
</li>
|
||||
<li class="nav-item dropdown">
|
||||
<a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button" aria-expanded="false" aria-haspopup="true" id="dropdown-articles">Articles</a>
|
||||
<div class="dropdown-menu" aria-labelledby="dropdown-articles">
|
||||
<a class="dropdown-item" href="../articles/redcap.html">Simple REDCap workflow</a>
|
||||
<a class="dropdown-item" href="../articles/toolbox.html">Toolbox</a>
|
||||
</div>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="../news/index.html">Changelog</a>
|
||||
</li>
|
||||
</ul><form class="form-inline my-2 my-lg-0" role="search">
|
||||
<input type="search" class="form-control me-sm-2" aria-label="Toggle navigation" name="search-input" data-search-index="../search.json" id="search-input" placeholder="Search for" autocomplete="off"></form>
|
||||
|
||||
<ul class="navbar-nav"><li class="nav-item">
|
||||
<a class="external-link nav-link" href="https://github.com/agdamsbo/stRoke/" aria-label="github">
|
||||
<span class="fab fa fab fa-github fa-lg"></span>
|
||||
|
||||
</a>
|
||||
</li>
|
||||
</ul></div>
|
||||
|
||||
|
||||
</div>
|
||||
</nav><div class="container template-reference-topic">
|
||||
<div class="row">
|
||||
<main id="main" class="col-md-9"><div class="page-header">
|
||||
<img src="" class="logo" alt=""><h1>Calculates the probability of winning</h1>
|
||||
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/stRoke/blob/HEAD/R/win_prob.R" class="external-link"><code>R/win_prob.R</code></a></small>
|
||||
<div class="d-none name"><code>win_prob.Rd</code></div>
|
||||
</div>
|
||||
|
||||
<div class="ref-description section level2">
|
||||
<p>Calculates the probability of winning (winP)</p>
|
||||
</div>
|
||||
|
||||
<div class="section level2">
|
||||
<h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">win_prob</span><span class="op">(</span></span>
|
||||
<span> <span class="va">data</span>,</span>
|
||||
<span> response <span class="op">=</span> <span class="cn">NULL</span>,</span>
|
||||
<span> group <span class="op">=</span> <span class="cn">NULL</span>,</span>
|
||||
<span> alpha <span class="op">=</span> <span class="fl">0.05</span>,</span>
|
||||
<span> beta <span class="op">=</span> <span class="fl">0.2</span>,</span>
|
||||
<span> group.ratio <span class="op">=</span> <span class="fl">1</span>,</span>
|
||||
<span> sample.size <span class="op">=</span> <span class="cn">FALSE</span>,</span>
|
||||
<span> print.tables <span class="op">=</span> <span class="cn">FALSE</span>,</span>
|
||||
<span> dec <span class="op">=</span> <span class="fl">3</span></span>
|
||||
<span><span class="op">)</span></span></code></pre></div>
|
||||
</div>
|
||||
|
||||
<div class="section level2">
|
||||
<h2 id="source">Source<a class="anchor" aria-label="anchor" href="#source"></a></h2>
|
||||
<p><a href="https://doi.org/10.1161/STROKEAHA.121.037744" class="external-link">doi:10.1161/STROKEAHA.121.037744</a></p>
|
||||
</div>
|
||||
<div class="section level2">
|
||||
<h2 id="arguments">Arguments<a class="anchor" aria-label="anchor" href="#arguments"></a></h2>
|
||||
<dl><dt>data</dt>
|
||||
<dd><p>A data frame containing the response and group variable.</p></dd>
|
||||
|
||||
|
||||
<dt>response</dt>
|
||||
<dd><p>The name of the response variable.
|
||||
Takes first column if empty.</p></dd>
|
||||
|
||||
|
||||
<dt>group</dt>
|
||||
<dd><p>The name of the group variable.
|
||||
Takes second column if empty.</p></dd>
|
||||
|
||||
|
||||
<dt>alpha</dt>
|
||||
<dd><p>The alpha level for the hypothesis test. Default is 0.05.</p></dd>
|
||||
|
||||
|
||||
<dt>beta</dt>
|
||||
<dd><p>The beta level for the sample size calculation. Default is 0.2.</p></dd>
|
||||
|
||||
|
||||
<dt>group.ratio</dt>
|
||||
<dd><p>The ratio of group sizes. Default is 1.</p></dd>
|
||||
|
||||
|
||||
<dt>sample.size</dt>
|
||||
<dd><p>Flag to include sample size calculation. Default is FALSE.</p></dd>
|
||||
|
||||
|
||||
<dt>print.tables</dt>
|
||||
<dd><p>Flag to print cumulative tables. Default is FALSE.</p></dd>
|
||||
|
||||
|
||||
<dt>dec</dt>
|
||||
<dd><p>Numeric for decimals to print. Default is 3.</p></dd>
|
||||
|
||||
</dl></div>
|
||||
<div class="section level2">
|
||||
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
|
||||
|
||||
|
||||
<p>A list containing the win_prob statistic, the confidence interval,
|
||||
and the p-value.</p>
|
||||
</div>
|
||||
|
||||
<div class="section level2">
|
||||
<h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor" href="#ref-examples"></a></h2>
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="fu">win_prob</span><span class="op">(</span>data<span class="op">=</span><span class="fu">stRoke</span><span class="fu">::</span><span class="va"><a href="talos.html">talos</a></span>,response<span class="op">=</span><span class="st">"mrs_6"</span>,group<span class="op">=</span><span class="st">"rtreat"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $list_cum</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $list_cum$Active</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> mrs_6 rtreat Freq prop overall_rank rank win_frac</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 0 Active 14 0.17721519 175.0 72.5 0.847107438</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 1 Active 29 0.36708861 113.5 51.0 0.516528926</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 2 Active 22 0.27848101 49.0 25.5 0.194214876</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 3 Active 9 0.11392405 15.0 10.0 0.041322314</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 4 Active 3 0.03797468 7.0 4.0 0.024793388</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 6 Active 2 0.02531646 2.5 1.5 0.008264463</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $list_cum$Placebo</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> mrs_6 rtreat Freq prop overall_rank rank win_frac</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 0 Placebo 37 0.30578512 175.0 103.0 0.91139241</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 1 Placebo 43 0.35537190 113.5 63.0 0.63924051</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 2 Placebo 35 0.28925620 49.0 24.0 0.31645570</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 3 Placebo 2 0.01652893 15.0 5.5 0.12025316</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 11 4 Placebo 2 0.01652893 7.0 3.5 0.04430380</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 12 6 Placebo 2 0.01652893 2.5 1.5 0.01265823</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $group_levels</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Active" "Placebo"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $sum_a</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 79</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $sum_b</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 121</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $winP_a</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.3996757</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $winP_b</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.6003243</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $var_win_frac_a</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.07609113</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $var_win_frac_b</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.06806341</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $var_win_prob</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.001525686</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $se_win_prob</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.03906004</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $conf.int</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.6124886 0.3724300</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $test_stat</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 2.498962</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $p_val</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.01245577</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $nnt</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] -9.967675</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $ss_n</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] NA</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $param.record</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $param.record$data</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> rtreat mrs_1 mrs_6 hypertension diabetes civil</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 38 Active 1 1 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 434 Active 1 1 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 588 Active 2 2 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 42 Active 0 0 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 160 Placebo 1 1 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 174 Active 0 1 yes no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 11 Placebo 2 1 yes yes alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 601 Placebo 1 1 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 412 Active 0 0 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 88 Placebo 1 1 yes yes partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 56 Placebo 0 0 no no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 235 Placebo 2 1 yes yes alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 205 Active 3 3 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 62 Active 2 2 yes no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 593 Placebo 2 2 no no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 143 Active 2 1 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 520 Active 2 2 no yes partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 144 Placebo 1 0 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 383 Active 2 3 no no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 347 Placebo 1 0 yes yes partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 346 Active 1 2 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 318 Placebo 2 2 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 231 Placebo 2 2 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 190 Active 1 1 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 287 Placebo 2 2 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 633 Placebo 1 1 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 228 Placebo 4 3 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 409 Active 1 2 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 603 Placebo 2 1 no no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 628 Placebo 1 2 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 91 Active 1 0 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 537 Placebo 4 4 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 75 Placebo 1 2 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 282 Placebo 1 0 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 249 Active 1 1 no no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 72 Active 2 3 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 222 Active 2 2 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 258 Placebo 0 1 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 134 Active 4 4 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 117 Active 1 1 no yes partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 377 Active 2 1 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 583 Placebo 3 2 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 552 Active 3 1 yes no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 124 Placebo 2 2 yes yes partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 189 Placebo 1 0 no yes partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 521 Placebo 1 2 yes yes alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 429 Active 2 1 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 203 Placebo 1 1 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 172 Active 1 2 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 402 Placebo 2 2 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 574 Placebo 1 1 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 271 Active 4 3 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 50 Placebo 3 2 no no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 264 Active 4 2 no no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 571 Active 2 0 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 239 Active 3 3 yes no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 262 Placebo 2 1 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 236 Placebo 1 1 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 94 Placebo 1 1 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 275 Placebo 0 0 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 26 Placebo 2 4 no no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 476 Placebo 1 1 no no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 427 Active 2 3 yes no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 359 Placebo 1 2 yes no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 341 Active 4 3 yes no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 457 Active 1 1 yes yes partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 485 Placebo 0 0 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 171 Placebo 2 2 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 97 Placebo 2 1 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 635 Placebo 1 2 no no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 472 Placebo 1 0 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 408 Active 1 1 yes yes partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 158 Placebo 0 0 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 63 Placebo 1 0 no yes alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 557 Active 2 2 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 73 Active 1 1 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 425 Placebo 2 0 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 423 Placebo 2 2 yes yes partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 272 Active 2 1 yes no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 122 Active 1 0 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 370 Active 0 1 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 274 Placebo 0 0 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 407 Active 0 0 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 482 Placebo 1 1 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 586 Active 6 6 yes yes partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 20 Placebo 1 2 no no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 568 Active 1 0 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 331 Placebo 1 1 no no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 133 Placebo 1 1 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 563 Active 4 4 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 349 Placebo 1 2 yes yes alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 381 Placebo 1 1 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 549 Placebo 1 1 no no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 34 Active 1 1 no no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 33 Placebo 0 0 yes no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 531 Placebo 2 2 yes no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 389 Active 1 0 no no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 64 Active 1 1 yes yes alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 428 Active 2 1 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 403 Placebo 2 2 yes no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 343 Placebo 1 0 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 294 Active 2 2 no no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 76 Placebo 3 1 no no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 166 Placebo 1 0 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 209 Placebo 0 1 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 626 Active 2 2 yes no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 481 Active 5 3 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 376 Active 2 2 yes yes partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 67 Active 3 2 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 130 Placebo 2 1 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 250 Active 2 1 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 609 Active 2 2 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 545 Placebo 3 2 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 226 Placebo 2 1 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 276 Placebo 1 2 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 305 Placebo 0 0 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 202 Placebo 1 0 yes no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 245 Placebo 1 1 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 131 Active 3 1 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 505 Active 2 1 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 546 Placebo 2 2 yes no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 639 Placebo 1 1 yes yes partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 219 Active 2 1 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 244 Placebo 2 2 yes no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 348 Placebo 0 0 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 280 Placebo 0 0 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 504 Placebo 2 2 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 51 Placebo 1 1 no no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 493 Active 6 6 no no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 167 Placebo 0 1 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 58 Placebo 1 0 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 169 Active 0 0 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 293 Active 1 0 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 334 Placebo 6 6 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 28 Active 2 2 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 Placebo 0 0 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 463 Active 2 1 yes no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 445 Placebo 1 2 yes no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 320 Placebo 1 2 yes yes alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 500 Placebo 0 0 no no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 175 Placebo 1 2 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 201 Placebo 0 0 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 142 Active 2 0 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 278 Active 0 1 yes no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 181 Placebo 0 0 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 193 Placebo 2 1 yes no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 321 Active 2 0 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 598 Active 0 1 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 217 Placebo 0 0 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 13 Active 1 1 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 242 Placebo 2 0 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 513 Placebo 1 1 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 518 Placebo 2 2 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 304 Placebo 2 2 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 587 Placebo 1 2 no no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 497 Placebo 0 1 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 296 Placebo 0 0 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 526 Active 1 1 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 Placebo 2 1 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 627 Active 2 2 no yes partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 126 Placebo 2 1 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 420 Placebo 2 0 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 392 Active 2 2 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 522 Placebo 3 2 yes no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 312 Active 4 4 no yes partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 Placebo 1 1 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 29 Placebo 2 2 no no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 Placebo 1 1 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 49 Placebo 2 1 no yes partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 439 Placebo 3 2 no no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 46 Active 0 0 yes no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 80 Active 1 1 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 237 Placebo 0 0 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 306 Placebo 2 0 no no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 345 Placebo 0 0 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 153 Active 2 2 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 98 Placebo 1 0 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 44 Placebo 2 1 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 458 Active 3 2 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 585 Placebo 1 1 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 211 Placebo 3 2 no yes partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 610 Active 1 1 no no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 310 Placebo 0 0 no no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 541 Active 4 2 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 161 Placebo 1 1 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 641 Placebo 1 1 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 538 Placebo 1 1 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 281 Placebo 1 0 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 301 Active 3 2 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 356 Active 3 2 no no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 59 Active 3 3 no no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 302 Placebo 1 0 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 116 Active 1 0 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 547 Placebo 2 2 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 22 Placebo 2 1 no no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 517 Placebo 4 3 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 344 Placebo 1 1 yes no partner</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 48 Placebo 2 0 yes no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 100 Placebo 1 0 yes no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 93 Placebo 6 6 yes no alone</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $param.record$response</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "mrs_6"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $param.record$group</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "rtreat"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $param.record$alpha</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.05</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $param.record$beta</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $param.record$group.ratio</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $param.record$sample.size</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $param.record$print.tables</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $param.record$dec</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 3</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> attr(,"class")</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "win_Prop" "list" </span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
||||
</nav></aside></div>
|
||||
|
||||
|
||||
<footer><div class="pkgdown-footer-left">
|
||||
<p></p><p>Developed by Andreas Gammelgaard Damsbo.</p>
|
||||
</div>
|
||||
|
||||
<div class="pkgdown-footer-right">
|
||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
|
||||
</div>
|
||||
|
||||
</footer></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</body></html>
|
||||
|
File diff suppressed because one or more lines are too long
@ -90,4 +90,7 @@
|
||||
<url>
|
||||
<loc>/reference/talos.html</loc>
|
||||
</url>
|
||||
<url>
|
||||
<loc>/reference/win_prob.html</loc>
|
||||
</url>
|
||||
</urlset>
|
||||
|
@ -1,9 +1,8 @@
|
||||
Andreas
|
||||
DDMMYY
|
||||
Epi
|
||||
DOI
|
||||
Gammelgaard
|
||||
Github
|
||||
MSKCC
|
||||
NA's
|
||||
OLR
|
||||
ORCID
|
||||
@ -13,12 +12,15 @@ REDCapR
|
||||
REDCapRITS
|
||||
RStudio
|
||||
Randomisation
|
||||
STROKEAHA
|
||||
Sys
|
||||
TALOS
|
||||
Vectorised
|
||||
XXXX
|
||||
Zou
|
||||
advices
|
||||
agdamsbo
|
||||
al
|
||||
analysing
|
||||
annonymized
|
||||
bstfun
|
||||
@ -38,7 +40,7 @@ difftime
|
||||
dk
|
||||
eeptools
|
||||
eg
|
||||
gg
|
||||
et
|
||||
ggplot
|
||||
ggplots
|
||||
glm
|
||||
@ -48,7 +50,6 @@ gp
|
||||
gpttools
|
||||
grotta
|
||||
grottaBar
|
||||
gtsave
|
||||
gtsummary
|
||||
inteRgrate
|
||||
lm
|
||||
@ -57,10 +58,10 @@ mRS
|
||||
md
|
||||
neuRo
|
||||
olr
|
||||
ppplot
|
||||
recognised
|
||||
sapply
|
||||
uri
|
||||
vapply
|
||||
vec
|
||||
winP
|
||||
xxxx
|
||||
|
52
man/win_prob.Rd
Normal file
52
man/win_prob.Rd
Normal file
@ -0,0 +1,52 @@
|
||||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/win_prob.R
|
||||
\name{win_prob}
|
||||
\alias{win_prob}
|
||||
\title{Calculates the probability of winning}
|
||||
\source{
|
||||
\doi{10.1161/STROKEAHA.121.037744}
|
||||
}
|
||||
\usage{
|
||||
win_prob(
|
||||
data,
|
||||
response = NULL,
|
||||
group = NULL,
|
||||
alpha = 0.05,
|
||||
beta = 0.2,
|
||||
group.ratio = 1,
|
||||
sample.size = FALSE,
|
||||
print.tables = FALSE,
|
||||
dec = 3
|
||||
)
|
||||
}
|
||||
\arguments{
|
||||
\item{data}{A data frame containing the response and group variable.}
|
||||
|
||||
\item{response}{The name of the response variable.
|
||||
Takes first column if empty.}
|
||||
|
||||
\item{group}{The name of the group variable.
|
||||
Takes second column if empty.}
|
||||
|
||||
\item{alpha}{The alpha level for the hypothesis test. Default is 0.05.}
|
||||
|
||||
\item{beta}{The beta level for the sample size calculation. Default is 0.2.}
|
||||
|
||||
\item{group.ratio}{The ratio of group sizes. Default is 1.}
|
||||
|
||||
\item{sample.size}{Flag to include sample size calculation. Default is FALSE.}
|
||||
|
||||
\item{print.tables}{Flag to print cumulative tables. Default is FALSE.}
|
||||
|
||||
\item{dec}{Numeric for decimals to print. Default is 3.}
|
||||
}
|
||||
\value{
|
||||
A list containing the win_prob statistic, the confidence interval,
|
||||
and the p-value.
|
||||
}
|
||||
\description{
|
||||
Calculates the probability of winning (winP)
|
||||
}
|
||||
\examples{
|
||||
win_prob(data=stRoke::talos,response="mrs_6",group="rtreat")
|
||||
}
|
@ -1,10 +0,0 @@
|
||||
test_that("gt_plot() produces a valid ggplot object", {
|
||||
require(webshot2)
|
||||
x <- gt_plot(gtsummary::tbl_summary(mtcars))
|
||||
expect_type(x, "list")
|
||||
expect_true(inherits(x, c("gg", "ggplot")))
|
||||
})
|
||||
|
||||
test_that("gt_plot() throws error if input is incorrect", {
|
||||
expect_error(gt_plot(mtcars))
|
||||
})
|
26
tests/testthat/test-win_prob.R
Normal file
26
tests/testthat/test-win_prob.R
Normal file
@ -0,0 +1,26 @@
|
||||
library(testthat)
|
||||
|
||||
# Global
|
||||
data <- stRoke::talos
|
||||
data$test <- "A"
|
||||
|
||||
test_that("Group must contain two levels", {
|
||||
expect_error(win_prob(data,response="mrs_6",group="test"))
|
||||
})
|
||||
|
||||
test_that("Response and group must be specified if not given", {
|
||||
expect_equal(win_prob(data[c("mrs_6","rtreat")])[[1]],
|
||||
win_prob(data, response = "mrs_6", group = "rtreat")[[1]])
|
||||
})
|
||||
|
||||
test_that("Group ratio must be a numeric", {
|
||||
expect_error(win_prob(data[c("mrs_6","rtreat")], group.ratio = "a"))
|
||||
})
|
||||
|
||||
test_that("Sample size must be a logical", {
|
||||
expect_error(win_prob(data[c("mrs_6","rtreat")], sample.size = "a"))
|
||||
})
|
||||
|
||||
test_that("Output length is 16", {
|
||||
expect_length(win_prob(data[c("mrs_6","rtreat")]), 16)
|
||||
})
|
@ -130,4 +130,17 @@ Reads REDCap data accounting for events and repeated instruments. Based on `libr
|
||||
|
||||
Please see [the vignette on REDCap](https://agdamsbo.github.io/stRoke/articles/redcap.html).
|
||||
|
||||
### win_prob()
|
||||
|
||||
The `win_prob()` is an implementation of the Tournament Method for calculating the probability of winning as suggested by [Zou et al 2022](https://doi.org/10.1161/STROKEAHA.121.037744). The authors has included a spreadsheet as supplementary materials. This function aims to mimic that functionality. The function also includes a `print()` extension for nice printing.
|
||||
|
||||
```{r win_prob-example}
|
||||
win_prob(
|
||||
data = stRoke::talos,
|
||||
response = "mrs_6",
|
||||
group = "rtreat",
|
||||
sample.size = TRUE,
|
||||
print.tables = TRUE
|
||||
)
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user