Skip to content

Commit

Permalink
rely on parameters for meta; closes #21
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed Sep 17, 2020
1 parent 05ef819 commit 8c1b5a6
Show file tree
Hide file tree
Showing 43 changed files with 350 additions and 329 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: statsExpressions
Title: Expressions with Statistical Details
Version: 0.5.0
Version: 0.5.0.9000
Authors@R:
person(given = "Indrajeet",
family = "Patil",
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# statsExpressions 0.5.0.9000

# statsExpressions 0.5.0

- Adapts to changes made in `tidyBF` package.
Expand Down
20 changes: 1 addition & 19 deletions R/helpers_meta_analysis_expressions.R
Original file line number Diff line number Diff line change
Expand Up @@ -203,25 +203,7 @@ expr_meta_robust <- function(data,
#----------------------- tidy output and subtitle ---------------------------

# create a dataframe with coefficients
df_tidy <-
meta_res %>% {
dplyr::inner_join(
x = as_tibble(as.data.frame(.$results), rownames = "term"),
y = as_tibble(as.data.frame(.$profile@summary@coef), rownames = "term"),
by = "term"
) %>%
dplyr::rename_all(.tbl = ., .funs = tolower) %>%
dplyr::select(
.data = .,
term,
estimate,
conf.low = `95% ci.lb`,
conf.high = `95% ci.ub`,
p.value = pvalue,
statistic = `z value`
) %>%
dplyr::filter(.data = ., term == "muhat")
}
df_tidy <- dplyr::filter(.data = broomExtra::tidy_parameters(meta_res), term == "Overall")

# preparing the subtitle
expr_template(
Expand Down
3 changes: 1 addition & 2 deletions R/helpers_t_test_expressions.R
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,7 @@ expr_t_nonparametric <- function(data,
#' data = dplyr::filter(bugs_long, condition %in% c("LDLF", "LDHF")),
#' x = condition,
#' y = desire,
#' paired = TRUE,
#' nboot = 25
#' paired = TRUE
#' )
#' }
#' @export
Expand Down
545 changes: 290 additions & 255 deletions README.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
],
"issueTracker": "\n https://github.com/IndrajeetPatil/statsExpressions/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.5.0",
"version": "0.5.0.9000",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down Expand Up @@ -333,6 +333,6 @@
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"fileSize": "3808.79KB",
"fileSize": "3808.376KB",
"readme": "https://github.com/IndrajeetPatil/statsExpressions/blob/master/README.md"
}
2 changes: 1 addition & 1 deletion docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/CODE_OF_CONDUCT.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/CONTRIBUTING.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/LICENSE-text.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/LICENSE.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/SUPPORT.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/articles/stats_details.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/authors.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions docs/news/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pkgdown: 1.5.1
pkgdown_sha: ~
articles:
stats_details: stats_details.html
last_built: 2020-09-11T23:22Z
last_built: 2020-09-13T17:17Z
urls:
reference: https://indrajeetpatil.github.io/statsExpressions//reference
article: https://indrajeetpatil.github.io/statsExpressions//articles
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/Titanic_full.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/VR_dilemma.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/bugs_long.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/expr_anova_bayes.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/expr_anova_nonparametric.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/expr_anova_parametric.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/expr_anova_robust.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/expr_contingency_tab.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/expr_corr_test.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions docs/reference/expr_meta_bayes.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/expr_meta_parametric.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions docs/reference/expr_meta_robust.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/expr_t_bayes.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/expr_t_nonparametric.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/expr_t_onesample.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/expr_t_parametric.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

3 comments on commit 8c1b5a6

@lintr-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

R/helpers_anova_expressions.R:84:1: style: functions should have cyclomatic complexity of less than 15, this has 17.

expr_anova_parametric <- function(data,
^

@lintr-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

R/helpers_anova_expressions.R:84:1: style: functions should have cyclomatic complexity of less than 15, this has 17.

expr_anova_parametric <- function(data,
^

@lintr-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

R/helpers_anova_expressions.R:84:1: style: functions should have cyclomatic complexity of less than 15, this has 17.

expr_anova_parametric <- function(data,
^

Please sign in to comment.