getPvalue: Returning only the p values

Description Usage Arguments See Also

Description

A group of functions to return only the p values from various of tests.

Usage

 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
p_fish.chi.t(df, v1, v2, alt = "two.sided", p.test = "both", ws = 2e+06)

p_aov.t(df, v1, v2)

p_ContCont(df, v1, v2, method = "spearman")

p_ContDisc(df, v1, v2, method = "kruskal.test")

p_lm(df, v1, v2)

p_xVsAll(
  df,
  x.coln,
  y.coln = NULL,
  num.num.test = "spearman",
  cat.num.test = "kruskal.test",
  cat.cat.test = "both"
)

p_dfAll(df, x.coln, y.coln = NULL, ...)

p_uniCox(
  survdf,
  feat,
  surv.time = "PFS.days",
  surv.status = "PFS.status",
  signif.cutoff = 0.05,
  keep.all.in.barplot = F,
  plot.surv = T,
  survp.xlim = c(0, 1400),
  survp.timebreak = 365
)

p_adjust_mat(pvaldf, p.adjust.method = "BH")

Arguments

df

dataframe with rows of samples and columns of features, one column should contain the subtype info.

v1, v2

character of the column name in the df

alt

passing to alternative in fisher.test, should be one of "two.sided", "greater" or "less". You can specify just the initial letter. Only used in the 2 by 2 case.

p.test

Should be "fisher" or "chi", to use only that method to get p values.

ws

passing to workspace size in fisher.test, integer specifying the size of the workspace used in the network algorithm. In units of 4 bytes.

method

p_ContDisc: the test method to-be-used, can be t.test, kruskal.test or wilcox.test

...

for p_feat_subtype, pass to p_fish.chi.t

feat

character vector of the features to be calculated

subtype

column name of the subtype

cont.test

the significance test to be used for continuous variables. Use the name of the r basic tests.

disc.test

the significance test to be used for discrete variables. Should be "fisher","chi" or"both"

See Also

chisq.t, fish.t, fisher.test,chisq.test, aov,kruskal.test,lm


brightchan/cjbmisc documentation built on Nov. 5, 2021, 4:12 p.m.