|
7 | 7 | #'@param score_type any valid type for \code{flipscores}, \code{"standardized"} is the default. see \code{\link[flipscores]{flipscores}} for more datails
|
8 | 8 | #'@param statistics "t" is the only method implemented (yet). Any other value will not modify the Score (a different statistic will only affect the multivariate inference, not the univariate one).
|
9 | 9 | #'@param seed \code{NULL} by default. Use a number if you wanto to ensure replicability of the results
|
| 10 | +#'@param output_models \code{TRUE} by default. Should the \code{flipscores} model returned? |
10 | 11 | #'@param ... any other further parameter.
|
11 | 12 | #'@export
|
12 | 13 | #'
|
|
31 | 32 | #'summary(res)
|
32 | 33 | #'summary(combine(res,by="Model"))
|
33 | 34 | join_flipscores <- function (mods, tested_coeffs = NULL, n_flips = 5000, score_type = "standardized",
|
34 |
| - statistics = "t",seed=NULL,...) |
| 35 | + statistics = "t", seed=NULL, output_models, ...) |
35 | 36 | {
|
36 | 37 | if(!is.null(seed)) set.seed(seed)
|
37 | 38 |
|
38 | 39 | names(mods) = .set_mods_names(mods)
|
39 |
| - if (is.null(tested_coeffs)) { |
40 |
| - tested_coeffs = .get_all_coeff_names_list(mods) |
41 |
| - } |
| 40 | + # if (is.null(tested_coeffs)) { |
| 41 | + # tested_coeffs = .get_all_coeff_names_list(mods) |
| 42 | + # } |
42 | 43 | if (!is.list(tested_coeffs)) {
|
43 | 44 | temp = .get_all_coeff_names_list(mods)
|
44 | 45 | tested_coeffs = lapply(temp, function(nms) intersect(tested_coeffs,
|
@@ -78,7 +79,9 @@ join_flipscores <- function (mods, tested_coeffs = NULL, n_flips = 5000, score_t
|
78 | 79 | names(mods) = mods_names
|
79 | 80 |
|
80 | 81 |
|
81 |
| - out=list(Tspace=.get_all_Tspace(mods),summary_table=.get_all_summary_table(mods)) |
| 82 | + out=list(Tspace=.get_all_Tspace(mods), |
| 83 | + summary_table=.get_all_summary_table(mods), |
| 84 | + mods=mods) |
82 | 85 | class(out) <- unique(c("jointest", class(out)))
|
83 | 86 | out
|
84 | 87 | }
|
0 commit comments