Description Usage Arguments Details Note Author(s) Examples
A set of categorical variables from the samples of a hetset
object
is tested for association with the subpopulations found in a scan_hetset
run
by Fisher's test for independence.
1 | show_dependencies(H, dep_list, S_list, type = "print")
|
H |
|
dep_list |
vector of variable names, that are used for further splittings of the samples |
S_list |
list of thresholds or reference values for the variables in |
type |
" |
Odds Ratios and corresponding confidence intervals for the association of the
partitioning with sample data are added to the plot produced by plot_hetset
If scan_hetset
was initiated by a given classification (e.g. sex), the
test must not be executed for the partitioning found by the mixture model and
the initial classification information. Since this would represent some kind
of a tautology.
Daniel Samaga
1 2 3 4 5 6 7 8 9 10 11 12 | n_A <- 100
n_B <- 50
A <- matrix(data = rnorm(n = n_A*15,mean = 1,sd = 1),ncol = n_A)
B <- matrix(data = rnorm(n = n_B*15,mean = 3,sd = 2),ncol = n_B)
Hds <- hetset(D = cbind(A,B))
Hds$"group" <- c(rep("A",n_A),rep("B",n_B))
Hds$"score" <- rnorm(ncol(Hds))
rm(A,B,n_A,n_B)
Hds <- scan_hetset(H = Hds,level = "univariate",min_size = 2,
max_size = 3,rel_imp = 0,em_steps = 5)
plot_hetset(Hds)
show_dependencies(H = Hds,dep_list = c("group","score"),S_list = list("A",0),type = "plot")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.