|
18 | 18 | #' |
19 | 19 | #' |
20 | 20 | #' @aliases semtree.control print.semtree.control semtree_control |
21 | | -#' @param method Default: 'naive'. One out of |
22 | | -#' \code{c("score","fair","naive")} for either an unbiased two-step |
23 | | -#' selection algorithm, a naive take-the-best, or a |
24 | | -#' score-based testing scheme. |
25 | | -#' @param min.N Default: 10. Minimum sample size per a node, used to determine |
26 | | -#' whether to continue splitting a tree or establish a terminal node. |
27 | | -#' @param max.depth Default: NA. Maximum levels per a branch. Parameter for |
| 21 | +#' @param method Default: 'naive'. One of |
| 22 | +#' \code{c("score","fair","naive")} for a score-based testing |
| 23 | +#' scheme, an unbiased multi-step selection algorithm, or a naive |
| 24 | +#' take-the-best strategy. |
| 25 | +#' @param min.N Integer. Default: `NULL` heuristically selects this number based on the number of parameters in the model. Minimum sample size per |
| 26 | +#' node used to determine whether splitting can continue. It is recommended to set `min.N` explicitly. |
| 27 | +#' @param max.depth Integer. Default: NA. Maximum levels per a branch. Parameter for |
28 | 28 | #' limiting tree growth. |
29 | | -#' @param alpha Default: 0.05. Significance level for splitting at a given |
| 29 | +#' @param alpha Numeric. Default: 0.05. Significance level for splitting at a given |
30 | 30 | #' node. |
31 | | -#' @param alpha.invariance Default: NA. Significance level for invariance |
| 31 | +#' @param Numeric. alpha.invariance Default: NA. Significance level for invariance |
32 | 32 | #' tests. If NA, the value of alpha is used. |
33 | 33 | #' @param exclude.heywood Default: TRUE. Reports whether there is an |
34 | 34 | #' identification problem in the covariance structure of an SEM tested. |
35 | | -#' @param progress.bar Default: NA. Option to disable the progress bar for tree |
36 | | -#' growth. |
37 | | -#' @param verbose Default: FALSE. Option to turn on or off \emph{all} model |
| 35 | +#' @param progress.bar Boolean. Default: TRUE. Option to enable or disable the progress |
| 36 | +#' bar for tree growth. |
| 37 | +#' @param verbose Boolean. Default: FALSE. Option to turn on or off \emph{all} model |
38 | 38 | #' messages during tree growth. |
39 | | -#' @param bonferroni Default: FALSE. Correct for multiple tests with Bonferroni |
| 39 | +#' @param bonferroni Boolean. Default: FALSE. Correct for multiple tests with Bonferroni |
40 | 40 | #' type correction. p-values are adjusted for the number of variables tested. |
41 | | -#' @param seed Default: NA. Set a random number seed for repeating random fold |
42 | | -#' generation in tree analysis. |
| 41 | +#' @param seed Default: `NA`. Set a random-number seed to make randomized parts |
| 42 | +#' of tree analysis reproducible (for example, in fair splitting or subsampling |
| 43 | +#' procedures). |
43 | 44 | #' @param custom.stopping.rule Default: NA. Otherwise, this can be a boolean |
44 | 45 | #' function with a custom stopping rule for tree growing. |
45 | 46 | #' @param exclude.code Default: NA. NPSOL error code for exclusion from model |
46 | 47 | #' fit evaluations when finding best split. Default: Models with errors during |
47 | 48 | #' fitting are retained. |
48 | 49 | #' @param mtry Default: NA. Number of sample columns to use in SEMforest |
49 | 50 | #' analysis. |
50 | | -#' @param report.level Default: 0. Values up to 99 can be used to increase the |
51 | | -#' number of onscreen reports for semtree analysis. |
52 | | -#' @param use.all Treatment of missing variables. By default, missing values |
| 51 | +#' @param report.level Integer. Default: 0. Values up to 99 increase console reporting |
| 52 | +#' detail during tree growth and can help diagnose fitting or split-selection |
| 53 | +#' issues. |
| 54 | +#' @param use.all Boolean. Treatment of missing variables. By default, missing values |
53 | 55 | #' stay in a decision node. If TRUE, cases are distributed according to a |
54 | 56 | #' maximum likelihood principle to the child nodes. |
55 | 57 | #' @param linear If TRUE (default), the structural equation model is assumed to |
56 | 58 | #' not contain any nonlinear parameter constraints and scores are computed |
57 | 59 | #' analytically, resulting in a shorter runtime. Only relevant for models fitted |
58 | 60 | #' with OpenMx. |
59 | | -#' @param min.bucket Minimum bucket size. This is the minimum size any node |
| 61 | +#' @param min.bucket Integer. Minimum bucket size. This is the minimum size any node |
60 | 62 | #' must have, such that a given split is considered valid. Minimum bucket size |
61 | 63 | #' is a lower bound to the sample size in the terminal nodes of a tree. |
62 | 64 | #' @param missing Missing value treatment. Default is ignore |
63 | | -#' @param use.maxlr Use MaxLR statistic for split point selection (as proposed by Arnold et al., 2021). This corrects the bias in the LR statistics incurred by testing multiple split points within one variable. |
| 65 | +#' @param use.maxlr Boolean. Use MaxLR statistic for split point selection (as proposed by Arnold et al., 2021). This corrects the bias in the LR statistics incurred by testing multiple split points within one variable. |
64 | 66 | #' @param strucchange.from Strucchange argument. See their package |
65 | 67 | #' documentation. |
66 | 68 | #' @param strucchange.to Strucchange argument. See their package documentation. |
|
70 | 72 | #' provided to \code{\link{semtree}}. |
71 | 73 | #' @param ctsem_sd If FALSE (default) no standard errors of CT model parameters |
72 | 74 | #' are computed. Requesting standard errors increases runtime. |
73 | | -#' @param loglik Character. Algorithm to compute log likelihood. The 'default' algorithm |
74 | | -#' depends on the chosen SEM package. It is 'mvn' for lavaan and 'model' for all |
75 | | -#' other packages. 'model'refers to a model-based computation. |
76 | | -#' This is preferable because it is more general. As an alternative, 'mvn' computes |
77 | | -#' the log likelihood based on the |
| 75 | +#' @param loglik Character.Character. Algorithm to compute log likelihood. `"default"` |
| 76 | +#' depends on the chosen SEM package: `"mvn"` for lavaan and `"model"` for |
| 77 | +#' all other packages. `"model"` refers to model-based computation and is more |
| 78 | +#' general. `"mvn"` computes likelihood from the multivariate normal density |
| 79 | +#' using model-implied means and covariance matrices. |
78 | 80 | #' multivariate normal density and the model-implied mean and covariance matrix. |
79 | 81 | #' @param check.convergence Boolean. Should convergence be checked when growing a tree. Default: TRUE |
80 | | -#' @param chunk.random.samples Integer. Default 0 means that |
| 82 | +#' @param chunk.random.samples Integer. Controlling split-point subsampling for |
| 83 | +#' `method = "naive"`. `0` (default) evaluates all eligible split points. |
| 84 | +#' Values `> 0` evaluate random chunks of split points, which can speed up tree |
| 85 | +#' growth on very large datasets at the cost of a less exhaustive search. |
81 | 86 | #' @return A control object containing a list of the above parameters. |
82 | 87 | #' @author Andreas M. Brandmaier, John J. Prindle, Manuel Arnold |
83 | 88 | #' @seealso \code{\link{semtree}} |
|
0 commit comments