Skip to content

Commit 47809fa

Browse files
committed
added params on join_flipscores
1 parent adce0bb commit 47809fa

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

R/join_flipscores.R

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#'@param score_type any valid type for \code{flipscores}, \code{"standardized"} is the default. see \code{\link[flipscores]{flipscores}} for more datails
88
#'@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).
99
#'@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?
1011
#'@param ... any other further parameter.
1112
#'@export
1213
#'
@@ -31,14 +32,14 @@
3132
#'summary(res)
3233
#'summary(combine(res,by="Model"))
3334
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, ...)
3536
{
3637
if(!is.null(seed)) set.seed(seed)
3738

3839
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+
# }
4243
if (!is.list(tested_coeffs)) {
4344
temp = .get_all_coeff_names_list(mods)
4445
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
7879
names(mods) = mods_names
7980

8081

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)
8285
class(out) <- unique(c("jointest", class(out)))
8386
out
8487
}

R/methods.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ NULL
7777

7878
summary.jointest <- function (object, ...)
7979
{
80-
#object$summary_table
81-
do.call(rbind,lapply(object, function(ob) ob$summary_table))
80+
object$summary_table
81+
# do.call(rbind,lapply(object, function(ob) ob$summary_table))
8282
}
8383

8484
.get_summary_table_from_flipscores <- function(object){

0 commit comments

Comments
 (0)