Skip to content

Commit 62e0b5c

Browse files
authored
Merge pull request #31 from arcaldwell49/ancova_shieh_2021
ANCOVA addition
2 parents 5624ae3 + b485b94 commit 62e0b5c

File tree

98 files changed

+5592
-301
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+5592
-301
lines changed

.Rbuildignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
^build/js$
1515
^temp$
1616
^.*\.jmo$
17-
^Validaion$
17+
^Validation$
1818
^NEWS\.Rmd$
1919
^jmvpower$
2020
^ANCOVA$

.github/workflows/R-CMD-check.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,5 @@ jobs:
4343
with:
4444
extra-packages: rcmdcheck
4545

46-
- uses: r-lib/actions/check-r-package@v1
46+
- uses: r-lib/actions/check-r-package@v1
47+

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ temp
1111
inst/doc
1212

1313
.DS_Store
14+
NUL
15+
tests/testthat/Rplots.pdf

DESCRIPTION

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: Superpower
22
Title: Simulation-Based Power Analysis for Factorial Designs
3-
Version: 0.1.2
3+
Version: 0.2.0
44
Authors@R: c(person(given = "Aaron",
55
family = "Caldwell",
66
role = c("aut", "cre"),
@@ -26,7 +26,7 @@ URL: https://aaroncaldwell.us/SuperpowerBook/
2626
BugReports: https://github.com/arcaldwell49/Superpower/issues
2727
License: MIT + file LICENSE
2828
Encoding: UTF-8
29-
RoxygenNote: 7.1.1
29+
RoxygenNote: 7.1.2
3030
Imports:
3131
mvtnorm,
3232
MASS,
@@ -39,14 +39,15 @@ Imports:
3939
dplyr,
4040
magrittr,
4141
tidyselect,
42-
Hmisc,
4342
tidyr
4443
Suggests:
4544
knitr,
4645
rmarkdown,
4746
pwr,
4847
testthat,
4948
covr,
50-
jmvcore
49+
jmvcore,
50+
spelling
5151
VignetteBuilder:
5252
knitr
53+
Language: en-US

NAMESPACE

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,16 @@ S3method(confint,sim_result)
44
S3method(emmeans_power,data.frame)
55
S3method(emmeans_power,emmGrid)
66
S3method(emmeans_power,summary_em)
7+
S3method(plot,ancova_power)
78
S3method(plot,design_aov)
89
S3method(plot,opt_alpha)
910
S3method(plot,sim_result)
11+
S3method(print,ancova_power)
1012
S3method(print,design_aov)
1113
S3method(print,opt_alpha)
1214
S3method(print,sim_result)
15+
export(ANCOVA_analytic)
16+
export(ANCOVA_contrast)
1317
export(ANOVA_compromise)
1418
export(ANOVA_design)
1519
export(ANOVA_exact)
@@ -25,12 +29,12 @@ export(optimal_alpha)
2529
export(p_standardized)
2630
export(plot_power)
2731
export(power.ftest)
32+
export(power_oneway_ancova)
2833
export(power_oneway_between)
2934
export(power_oneway_within)
3035
export(power_standardized_alpha)
3136
export(power_threeway_between)
3237
export(power_twoway_between)
33-
import(Hmisc)
3438
import(emmeans)
3539
import(ggplot2)
3640
importFrom(MASS,mvrnorm)
@@ -50,7 +54,14 @@ importFrom(magrittr,"%>%")
5054
importFrom(magrittr,'%>%')
5155
importFrom(reshape2,melt)
5256
importFrom(stats,as.formula)
57+
importFrom(stats,contr.sum)
58+
importFrom(stats,contrasts)
59+
importFrom(stats,dbeta)
60+
importFrom(stats,df)
61+
importFrom(stats,dt)
5362
importFrom(stats,median)
63+
importFrom(stats,model.matrix)
64+
importFrom(stats,optim)
5465
importFrom(stats,optimize)
5566
importFrom(stats,p.adjust)
5667
importFrom(stats,pf)
@@ -61,7 +72,9 @@ importFrom(stats,pt)
6172
importFrom(stats,qf)
6273
importFrom(stats,qnorm)
6374
importFrom(stats,qt)
75+
importFrom(stats,qtukey)
6476
importFrom(stats,sd)
77+
importFrom(stats,terms)
6578
importFrom(stats,uniroot)
6679
importFrom(tidyr,expand_grid)
6780
importFrom(tidyselect,matches)

0 commit comments

Comments
 (0)