a b/man/compClinvar.Rd
1
% Generated by roxygen2: do not edit by hand
2
% Please edit documentation in R/compClinvar.R
3
\name{compClinvar}
4
\alias{compClinvar}
5
\title{Comparison of clinical variables}
6
\usage{
7
compClinvar(
8
  moic.res = NULL,
9
  var2comp = NULL,
10
  strata = NULL,
11
  factorVars = NULL,
12
  nonnormalVars = NULL,
13
  exactVars = NULL,
14
  includeNA = FALSE,
15
  doWord = TRUE,
16
  tab.name = NULL,
17
  res.path = getwd(),
18
  ...
19
)
20
}
21
\arguments{
22
\item{moic.res}{An object returned by `getMOIC()` with one specified algorithm or `get\%algorithm_name\%` or `getConsensusMOIC()` with a list of multiple algorithms.}
23
24
\item{var2comp}{A data.frame of clinical variables that need to compare among current subtypes with rownames for samples and columns for variable names.}
25
26
\item{strata}{A string value to indicate the stratifying variable. This function will generate an internal 'Subtype' variable which concatenates a string of 'CS' and values from 'clust' column of 'clust.res' in argument of `moic.res`. This argument is set as NULL by default and in this case using 'Subtype' variable as strata.}
27
28
\item{factorVars}{A string vectors to indicate the categorical variables. If omitted, only factors are considered categorical variables.}
29
30
\item{nonnormalVars}{A string vector to specify the variables for which the p-values should be those of nonparametric tests. By default all p-values are from normal assumption-based tests (oneway.test)., Default: NULL}
31
32
\item{exactVars}{A string vector to specify the variables for which the p-values should be those of exact tests. By default all p-values are from large sample approximation tests (chisq.test)., Default: NULL}
33
34
\item{includeNA}{A logic value to indicate if NA should be handled as a regular factor level rather than missing. NA is shown as the last factor level in the table if \code{includeNA = T}. Only effective for categorical variables., Default: FALSE}
35
36
\item{doWord}{A logic value to indicate if transformating the .txt outfile to a .docx WORD file (.txt file will be also kept).}
37
38
\item{tab.name}{A string value to indicate the name of the output table.}
39
40
\item{res.path}{A string value to indicate the path for saving the table.}
41
42
\item{...}{Additionnal parameters pass to jstable::CreateTableOne2}
43
}
44
\value{
45
A summarizing table with stastitical testing results.
46
}
47
\description{
48
Create a table summarizing all baseline variables (both continuous and categorical) stratifying by current identified Subtypes and performing statistical tests. The object gives a table that is easy to use in medical research papers.
49
}
50
\examples{
51
# There is no example and please refer to vignette.
52
}