-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmaxcombo.Rd
52 lines (48 loc) · 1.63 KB
/
maxcombo.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/maxcombo.R
\name{maxcombo}
\alias{maxcombo}
\title{MaxCombo test}
\usage{
maxcombo(
data = cut_data_by_event(sim_pw_surv(n = 200), 150),
rho = c(0, 0, 1),
gamma = c(0, 1, 1),
return_variance = FALSE,
return_corr = FALSE
)
}
\arguments{
\item{data}{A TTE dataset.}
\item{rho}{Numeric vector. Must be greater
than or equal to zero. Must be the same length as \code{gamma}.}
\item{gamma}{Numeric vector. Must be
greater than or equal to zero. Must be the same length as \code{rho}.}
\item{return_variance}{A logical flag that, if \code{TRUE}, adds columns
estimated variance for weighted sum of observed minus expected;
see details; Default: \code{FALSE}.}
\item{return_corr}{A logical flag that, if \code{TRUE}, adds columns
estimated correlation for weighted sum of observed minus expected;
see details; Default: \code{FALSE}.}
}
\value{
A list containing the test method (\code{method}),
parameters of this test method (\code{parameter}),
point estimate of the treatment effect (\code{estimate}),
standardized error of the treatment effect (\code{se}),
Z-score of each test of the MaxCombo (\code{z}),
p-values (\code{p_value})
and the correlation matrix of each tests in MaxCombo (begin with \code{v})
}
\description{
WARNING: This experimental function is a work-in-progress. The function
arguments will change as we add additional features.
}
\examples{
sim_pw_surv(n = 200) |>
cut_data_by_event(150) |>
maxcombo(rho = c(0, 0), gamma = c(0, 1), return_corr = TRUE)
}
\seealso{
\code{\link[=wlr]{wlr()}}, \code{\link[=rmst]{rmst()}}, \code{\link[=milestone]{milestone()}}
}