R version 4.2.1 (2022-06-23) -- "Funny-Looking Kid" Copyright (C) 2022 The R Foundation for Statistical Computing Platform: aarch64-apple-darwin20 (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > pkgname <- "semtree" > source(file.path(R.home("share"), "R", "examples-header.R")) > options(warn = 1) > library('semtree') Loading required package: OpenMx OpenMx may run faster if it is compiled to take advantage of multiple cores. > > base::assign(".oldSearch", base::search(), pos = 'CheckExEnv') > base::assign(".old_wd", base::getwd(), pos = 'CheckExEnv') > cleanEx() > nameEx("proximity") > ### * proximity > > flush(stderr()); flush(stdout()) > > ### Name: proximity > ### Title: Compute proximity matrix > ### Aliases: proximity > > ### ** Examples > > nodeids <- structure(c(9, 3, 5, 7, 10, 4, 6, 8, 9, 3, 5, 7, 10, 4, 6, 8), + .Dim = c(4L, 4L)) > class(nodeids) <- "semforest_node_id" > sims <- proximity(nodeids) > dd <- as.dist(1-sims) > hc <- hclust(dd) > groups <- cutree(hc, 2) > > > > cleanEx() > nameEx("semtree.control") > ### * semtree.control > > flush(stderr()); flush(stdout()) > > ### Name: semtree.control > ### Title: SEM Tree Control Object > ### Aliases: semtree.control print.semtree.control > > ### ** Examples > > > > # create a control object with an alpha level of 1% > my.control <- semtree.control(alpha=0.01) > > # set the minimum number of cases per node to ten > my.control$min.N <- 10 > > # print contents of the control object > print(my.control) SEM-Tree control: ▔▔▔▔▔▔▔▔▔▔ ● Splitting Method: naive ● Alpha Level: 0.01 ● Bonferroni Correction:FALSE ● Minimum Number of Cases: 10 ● Maximum Tree Depth: NA ● Number of CV Folds: 5 ● Exclude Heywood Cases: TRUE ● Test Invariance Alpha Level: NA ● Use all Cases: FALSE ● Verbosity: FALSE ● Progress Bar: TRUE ● Seed: NA > > > > > > cleanEx() > nameEx("strip") > ### * strip > > flush(stderr()); flush(stdout()) > > ### Name: strip > ### Title: Retain only basic tree structure > ### Aliases: strip > > ### ** Examples > > ## Not run: > ##D if(interactive()){ > ##D #EXAMPLE1 > ##D } > ## End(Not run) > > > > ### *