Package: statpsych 1.6.0

statpsych: Statistical Methods for Psychologists

Implements confidence interval and sample size methods that are especially useful in psychological research. The methods can be applied in 1-group, 2-group, paired-samples, and multiple-group designs and to a variety of parameters including means, medians, proportions, slopes, standardized mean differences, standardized linear contrasts of means, plus several measures of correlation and association. The confidence intervals and sample size functions are applicable to single parameters as well as differences, ratios, and linear contrasts of parameters. The sample size functions can be used to approximate the sample size needed to estimate a parameter or function of parameters with desired confidence interval precision or to perform a variety of hypothesis tests (directional two-sided, equivalence, superiority, noninferiority) with desired power. For details see: Statistical Methods for Psychologists, Volumes 1 – 4, <https://dgbonett.sites.ucsc.edu/>.

Authors:Douglas G. Bonett [aut, cre], Robert J. Calin-Jageman [ctb]

statpsych_1.6.0.tar.gz
statpsych_1.6.0.zip(r-4.5)statpsych_1.6.0.zip(r-4.4)statpsych_1.6.0.zip(r-4.3)
statpsych_1.6.0.tgz(r-4.4-any)statpsych_1.6.0.tgz(r-4.3-any)
statpsych_1.6.0.tar.gz(r-4.5-noble)statpsych_1.6.0.tar.gz(r-4.4-noble)
statpsych_1.6.0.tgz(r-4.4-emscripten)statpsych_1.6.0.tgz(r-4.3-emscripten)
statpsych.pdf |statpsych.html
statpsych/json (API)
NEWS

# Install 'statpsych' in R:
install.packages('statpsych', repos = c('https://dgbonett.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/dgbonett/statpsych/issues

On CRAN:

4.73 score 6 stars 1 packages 15 scripts 377 downloads 216 exports 4 dependencies

Last updated 2 months agofrom:dc6585436f. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 27 2024
R-4.5-winOKOct 27 2024
R-4.5-linuxOKOct 27 2024
R-4.4-winOKOct 27 2024
R-4.4-macOKOct 27 2024
R-4.3-winOKOct 27 2024
R-4.3-macOKOct 27 2024

Exports:adj.seci.2x2.mean.bsci.2x2.mean.mixedci.2x2.mean.wsci.2x2.median.bsci.2x2.median.mixedci.2x2.median.wsci.2x2.prop.bsci.2x2.prop.mixedci.2x2.stdmean.bsci.2x2.stdmean.mixedci.2x2.stdmean.wsci.agreeci.agree.3raterci.agree2ci.bayes.normalci.bayes.propci.biphici.bscorci.codci.condslopeci.condslope.logci.corci.cor.depci.cor2ci.cor2.genci.cqvci.cramerci.cronbachci.cronbach2ci.cvci.etasqrci.fisherci.indirectci.kappaci.lc.gen.bsci.lc.glmci.lc.mean.bsci.lc.median.bsci.lc.prop.bsci.lc.regci.lc.stdmean.bsci.lc.stdmean.wsci.madci.mannci.mapeci.meanci.mean.fpcci.mean.psci.mean1ci.mean2ci.medianci.median.psci.median1ci.median2ci.oddsratioci.pairs.multci.pairs.prop.bsci.pbcorci.phici.poissonci.popsizeci.propci.prop.fpcci.prop.invci.prop.psci.prop1ci.prop2ci.prop2.invci.pvci.random.anovaci.ratio.cod2ci.ratio.cv2ci.ratio.mad.psci.ratio.mad2ci.ratio.mape2ci.ratio.mean.psci.ratio.mean2ci.ratio.median.psci.ratio.median2ci.ratio.poisson2ci.ratio.prop.psci.ratio.prop2ci.ratio.sd2ci.rel2ci.reliabilityci.rsqrci.signci.slope.mean.bsci.slope.prop.bsci.spcorci.spearci.spear2ci.stdmeanci.stdmean.psci.stdmean.stratci.stdmean1ci.stdmean2ci.tetraci.theilci.tukeyci.var.upperci.yuleetasqr.adjetasqr.gen.2wayfitindicesiqvpi.corpi.proppi.scorepi.score.pspi.score2pi.var.upperpower.corpower.cor2power.lc.mean.bspower.meanpower.mean.pspower.mean2power.proppower.prop.pspower.prop2random.samplerandom.yrandom.yxrandomizesim.ci.corsim.ci.meansim.ci.mean.pssim.ci.mean2sim.ci.mediansim.ci.median.pssim.ci.median2sim.ci.spearsim.ci.stdmean.pssim.ci.stdmean2size.ci.agreesize.ci.condmeansize.ci.corsize.ci.cor.priorsize.ci.cor2size.ci.cronbachsize.ci.cronbach2size.ci.etasqrsize.ci.indirectsize.ci.lc.ancovasize.ci.lc.mean.bssize.ci.lc.mean.wssize.ci.lc.prop.bssize.ci.lc.stdmean.bssize.ci.lc.stdmean.wssize.ci.mapesize.ci.meansize.ci.mean.priorsize.ci.mean.pssize.ci.mean2size.ci.pbcorsize.ci.propsize.ci.prop.priorsize.ci.prop.pssize.ci.prop2size.ci.ratio.mean.pssize.ci.ratio.mean2size.ci.ratio.prop.pssize.ci.ratio.prop2size.ci.rsqrsize.ci.secondsize.ci.slopesize.ci.spearsize.ci.spear2size.ci.stdmean.pssize.ci.stdmean2size.ci.tetrasize.equiv.mean.pssize.equiv.mean2size.equiv.prop.pssize.equiv.prop2size.interval.corsize.supinf.mean.pssize.supinf.mean2size.supinf.prop.pssize.supinf.prop2size.test.corsize.test.cor2size.test.cronbachsize.test.cronbach2size.test.lc.ancovasize.test.lc.mean.bssize.test.lc.mean.wssize.test.lc.prop.bssize.test.mannsize.test.meansize.test.mean.pssize.test.mean2size.test.propsize.test.prop.pssize.test.prop2size.test.signsize.test.sign.pssize.test.slopeslope.contrastspearmanbrowntest.anova.bstest.cortest.cor2test.kurtosistest.meantest.mono.mean.bstest.mono.prop.bstest.proptest.prop.bstest.prop.pstest.prop2test.skewtest.speartest.spear2

Dependencies:mathjaxrmnonrrbibutilsRdpack

Readme and manuals

Help Manual

Help pageTopics
Adjusted standard errors for slope coefficients in an exploratory analysisadj.se
Computes tests and confidence intervals of effects in a 2x2 between-subjects design for meansci.2x2.mean.bs
Computes tests and confidence intervals of effects in a 2x2 mixed design for meansci.2x2.mean.mixed
Computes tests and confidence intervals of effects in a 2x2 within-subjects design for meansci.2x2.mean.ws
Computes tests and confidence intervals of effects in a 2x2 between-subjects design for mediansci.2x2.median.bs
Computes confidence intervals of effects in a 2x2 mixed design for mediansci.2x2.median.mixed
Computes confidence intervals of effects in a 2x2 within-subjects design for mediansci.2x2.median.ws
Computes tests and confidence intervals of effects in a 2x2 between- subjects design for proportionsci.2x2.prop.bs
Computes tests and confidence intervals of effects in a 2x2 mixed factorial design for proportionsci.2x2.prop.mixed
Computes confidence intervals of standardized effects in a 2x2 between-subjects designci.2x2.stdmean.bs
Computes confidence intervals of standardized effects in a 2x2 mixed designci.2x2.stdmean.mixed
Computes confidence intervals of standardized effects in a 2x2 within-subjects designci.2x2.stdmean.ws
Confidence interval for a G-index of agreementci.agree
Computes confidence intervals for a 3-rater design with dichotomous ratingsci.agree.3rater
Confidence interval for G-index difference in a 2-group designci.agree2
Bayesian credible interval for a normal prior distributionci.bayes.normal
Bayesian credible interval for a proportionci.bayes.prop
Confidence interval for a biserial-phi correlationci.biphi
Confidence interval for a biserial correlationci.bscor
Confidence interval for a coefficient of dispersionci.cod
Confidence intervals for conditional (simple) slopes in a linear modelci.condslope
Confidence intervals for conditional (simple) slopes in a logistic modelci.condslope.log
Confidence interval for a Pearson or partial correlationci.cor
Confidence interval for a difference in dependent Pearson correlationsci.cor.dep
Confidence interval for a 2-group Pearson correlation differenceci.cor2
Confidence interval for a 2-group correlation differenceci.cor2.gen
Confidence interval for a coefficient of quartile variationci.cqv
Confidence interval for Cramer's Vci.cramer
Confidence interval for a Cronbach reliabilityci.cronbach
Confidence interval for a difference in Cronbach reliabilities in a 2-group designci.cronbach2
Confidence interval for a coefficient of variationci.cv
Confidence interval for eta-squaredci.etasqr
Fisher confidence intervalci.fisher
Confidence interval for an indirect effectci.indirect
Confidence interval for two kappa reliability coefficientsci.kappa
Confidence interval for a linear contrast of parameters in a between-subjects designci.lc.gen.bs
Confidence interval for a linear contrast of general linear model parametersci.lc.glm
Confidence interval for a linear contrast of means in a between-subjects designci.lc.mean.bs
Confidence interval for a linear contrast of medians in a between-subjects designci.lc.median.bs
Confidence interval for a linear contrast of proportions in a between- subjects designci.lc.prop.bs
Confidence interval for a linear contrast of regression coefficients in multiple group regression modelci.lc.reg
Confidence interval for a standardized linear contrast of means in a between-subjects designci.lc.stdmean.bs
Confidence interval for a standardized linear contrast of means in a within-subjects designci.lc.stdmean.ws
Confidence interval for a mean absolute deviationci.mad
Confidence interval for a Mann-Whitney parameterci.mann
Confidence interval for a mean absolute prediction errorci.mape
Confidence interval for a meanci.mean ci.mean1
Confidence interval for a mean with a finite population correctionci.mean.fpc
Confidence interval for a paired-samples mean differenceci.mean.ps
Confidence interval for a 2-group mean differenceci.mean2
Confidence interval for a medianci.median ci.median1
Confidence interval for a paired-samples median differenceci.median.ps
Confidence interval for a 2-group median differenceci.median2
Confidence interval for an odds ratioci.oddsratio
Confidence intervals for pairwise proportion differences of a multinomial variableci.pairs.mult
Bonferroni confidence intervals for all pairwise proportion differences in a between-subjects designci.pairs.prop.bs
Confidence intervals for point-biserial correlationsci.pbcor
Confidence interval for a phi correlationci.phi
Confidence interval for a Poisson rateci.poisson
Confidence interval for an unknown population sizeci.popsize
Confidence intervals for a proportionci.prop ci.prop1
Confidence interval for a proportion with a finite population correctionci.prop.fpc
Confidence interval for a proportion using inverse samplingci.prop.inv
Confidence interval for a paired-samples proportion differenceci.prop.ps
Confidence interval for a 2-group proportion differenceci.prop2
Confidence interval for a 2-group proportion difference using inverse samplingci.prop2.inv
Confidence intervals for positive and negative predictive values with retrospective samplingci.pv
Confidence intervals for parameters of one-way random effects ANOVAci.random.anova
Confidence interval for a ratio of dispersion coefficients in a 2-group designci.ratio.cod2
Confidence interval for a ratio of coefficients of variation in a 2-group designci.ratio.cv2
Confidence interval for a paired-sample MAD ratioci.ratio.mad.ps
Confidence interval for a 2-group ratio of mean absolute deviationsci.ratio.mad2
Confidence interval for a ratio of mean absolute prediction errors in a 2-group designci.ratio.mape2
Confidence interval for a paired-samples mean ratioci.ratio.mean.ps
Confidence interval for a 2-group mean ratioci.ratio.mean2
Confidence interval for a paired-samples median ratioci.ratio.median.ps
Confidence interval for a 2-group median ratioci.ratio.median2
Confidence interval for a ratio of Poisson rates in a 2-group designci.ratio.poisson2
Confidence interval for a paired-samples proportion ratioci.ratio.prop.ps
Confidence interval for a 2-group proportion ratioci.ratio.prop2
Confidence interval for a 2-group ratio of standard deviationsci.ratio.sd2
Confidence interval for a 2-group reliability differenceci.rel2
Confidence interval for a reliability coefficientci.reliability
Confidence interval for squared multiple correlationci.rsqr
Confidence interval for the parameter of the one-sample sign testci.sign
Confidence interval for the slope of means in a one-factor experimental design with a quantitative between-subjects factorci.slope.mean.bs
Confidence interval for a slope of a proportion in a single-factor experimental design with a quantitative between-subjects factorci.slope.prop.bs
Confidence interval for a semipartial correlationci.spcor
Confidence interval for a Spearman correlationci.spear
Confidence interval for a 2-group Spearman correlation differenceci.spear2
Confidence interval for a standardized meanci.stdmean ci.stdmean1
Confidence intervals for a paired-samples standardized mean differenceci.stdmean.ps
Confidence intervals for a 2-group standardized mean difference with stratified samplingci.stdmean.strat
Confidence intervals for a 2-group standardized mean differenceci.stdmean2
Confidence interval for a tetrachoric correlationci.tetra
Theil-Sen estimate and confidence interval for slopeci.theil
Tukey-Kramer confidence intervals for all pairwise mean differences in a between-subjects designci.tukey
Upper confidence limit of a varianceci.var.upper
Confidence intervals for generalized Yule coefficientsci.yule
Bias adjustments for an eta-squared estimateetasqr.adj
Generalized eta-squared estimates in a two-factor designetasqr.gen.2way
SEM fit indicesfitindices
Indices of qualitative variationiqv
Prediction limit for an estimated correlationpi.cor
Prediction interval for an estimated proportionpi.prop
Prediction interval for one scorepi.score
Prediction interval for difference of scores in a 2-level within-subjects experimentpi.score.ps
Prediction interval for a difference of scores in a 2-group experimentpi.score2
Upper prediction limit for an estimated variancepi.var.upper
Approximates the power of a correlation test for a planned sample sizepower.cor
Approximates the power of a test for equal correlations in a 2-group design for planned sample sizespower.cor2
Approximates the power of a test for a linear contrast of means for planned sample sizes in a between-subjects designpower.lc.mean.bs
Approximates the power of a one-sample t-test for a planned sample sizepower.mean
Approximates the power of a paired-samples t-test for a planned sample sizepower.mean.ps
Approximates the power of a two-sample t-test for planned sample sizespower.mean2
Approximates the power of a 1-group proportion test for a planned sample sizepower.prop
Approximates the power of a paired-samples test of equal proportions for a planned sample sizepower.prop.ps
Approximates the power of a 2-group proportion test for planned sample sizespower.prop2
Generate a random samplerandom.sample
Generate random sample of scoresrandom.y
Generates random bivariate scoresrandom.yx
Randomize a sample into groupsrandomize
Simulates confidence interval coverage probability for a Pearson correlationsim.ci.cor
Simulates confidence interval coverage probability for a meansim.ci.mean
Simulates confidence interval coverage probability for a paired-samples mean differencesim.ci.mean.ps
Simulates confidence interval coverage probability for a 2-group mean differencesim.ci.mean2
Simulates confidence interval coverage probability for a mediansim.ci.median
Simulates confidence interval coverage probability for a median difference in a paired-samples designsim.ci.median.ps
Simulates confidence interval coverage probability for a median difference in a 2-group designsim.ci.median2
Simulates confidence interval coverage probability for a Spearman correlationsim.ci.spear
Simulates confidence interval coverage probability for a standardized mean difference in a paired-samples designsim.ci.stdmean.ps
Simulates confidence interval coverage probability for a standardized mean difference in a 2-group designsim.ci.stdmean2
Sample size for a G-index confidence intervalsize.ci.agree
Sample size for a conditional mean confidence intervalsize.ci.condmean
Sample size for a Pearson or partial correlation confidence intervalsize.ci.cor
Sample size for a Pearson correlation confidence interval using a planning value from a prior studysize.ci.cor.prior
Sample size for a 2-group Pearson correlation difference confidence intervalsize.ci.cor2
Sample size for a Cronbach reliability confidence intervalsize.ci.cronbach
Sample size for a 2-group Cronbach reliability difference confidence intervalsize.ci.cronbach2
Sample size for an eta-squared confidence intervalsize.ci.etasqr
Sample size for an indirect effect confidence intervalsize.ci.indirect
Sample size for a linear contrast confidence interval in an ANCOVAsize.ci.lc.ancova
Sample size for a between-subjects mean linear contrast confidence intervalsize.ci.lc.mean.bs
Sample size for a within-subjects mean linear contrast confidence intervalsize.ci.lc.mean.ws
Sample size for a between-subjects proportion linear contrast confidence intervalsize.ci.lc.prop.bs
Sample size for a between-subjects standardized linear contrast of means confidence intervalsize.ci.lc.stdmean.bs
Sample size for a within-subjects standardized linear contrast of means confidence intervalsize.ci.lc.stdmean.ws
Sample size for a mean absolute prediction error confidence intervalsize.ci.mape
Sample size for a mean confidence intervalsize.ci.mean
Sample size for a mean confidence interval using a planning value from a prior studysize.ci.mean.prior
Sample size for a paired-samples mean difference confidence intervalsize.ci.mean.ps
Sample size for a 2-group mean difference confidence intervalsize.ci.mean2
Sample size for a point-biserial correlation confidence intervalsize.ci.pbcor
Sample size for a proportion confidence intervalsize.ci.prop
Sample size for a proportion confidence interval using a planning value from a prior studysize.ci.prop.prior
Sample size for a paired-sample proportion difference confidence intervalsize.ci.prop.ps
Sample size for a 2-group proportion difference confidence intervalsize.ci.prop2
Sample size for a paired-samples mean ratio confidence intervalsize.ci.ratio.mean.ps
Sample size for a 2-group mean ratio confidence intervalsize.ci.ratio.mean2
Sample size for a paired-samples proportion ratio confidence intervalsize.ci.ratio.prop.ps
Sample size for a 2-group proportion ratio confidence intervalsize.ci.ratio.prop2
Sample size for a squared multiple correlation confidence intervalsize.ci.rsqr
Sample size for a second-stage confidence intervalsize.ci.second
Sample size for a slope confidence intervalsize.ci.slope
Sample size for a Spearman correlation confidence intervalsize.ci.spear
Sample size for a 2-group Spearman correlation difference confidence intervalsize.ci.spear2
Sample size for a paired-samples standardized mean difference confidence intervalsize.ci.stdmean.ps
Sample size for a 2-group standardized mean difference confidence intervalsize.ci.stdmean2
Sample size for a tetrachoric correlation confidence intervalsize.ci.tetra
Sample size for a paired-samples mean equivalence testsize.equiv.mean.ps
Sample size for a 2-group mean equivalence testsize.equiv.mean2
Sample size for a paired-samples proportion equivalence testsize.equiv.prop.ps
Sample size for a 2-group proportion equivalence testsize.equiv.prop2
Sample size for an interval test of a Pearson or partial correlationsize.interval.cor
Sample size for a paired-samples mean superiority or noninferiority testsize.supinf.mean.ps
Sample size for a 2-group mean superiority or noninferiority testsize.supinf.mean2
Sample size for a paired-samples superiority or inferiority test of proportionssize.supinf.prop.ps
Sample size for a 2-group superiority or inferiority test of proportionssize.supinf.prop2
Sample size for a test of a Pearson or partial correlationsize.test.cor
Sample size for a test of equal Pearson or partial correlation in a 2-group designsize.test.cor2
Sample size to test a Cronbach reliabilitysize.test.cronbach
Sample size to test equality of Cronbach reliability coefficients in a 2-group designsize.test.cronbach2
Sample size for a mean linear contrast test in an ANCOVAsize.test.lc.ancova
Sample size for a test of a between-subjects mean linear contrastsize.test.lc.mean.bs
Sample size for a test of a within-subjects mean linear contrastsize.test.lc.mean.ws
Sample size for a test of between-subjects proportion linear contrastsize.test.lc.prop.bs
Sample size for a Mann-Whitney testsize.test.mann
Sample size for a test of a meansize.test.mean
Sample size for a test of a paired-samples mean differencesize.test.mean.ps
Sample size for a test of a 2-group mean differencesize.test.mean2
Sample size for a test of a single proportionsize.test.prop
Sample size for a test of a paired-samples proportion differencesize.test.prop.ps
Sample size for a test of a 2-group proportion differencesize.test.prop2
Sample size for a 1-group sign testsize.test.sign
Sample size for a paired-samples sign testsize.test.sign.ps
Sample size for a test of a slopesize.test.slope
Contrast coefficients for the slope of a quantitative factorslope.contrast
Computes the reliability of a scale with r2 measurements given the reliability of a scale with r1 measurementsspearmanbrown
Between-subjects F statistic and eta-squared from summary informationtest.anova.bs
Hypothesis test for a Pearson or partial correlationtest.cor
Hypothesis test for a 2-group Pearson or partial correlation differencetest.cor2
Computes p-value for test of excess kurtosistest.kurtosis
Hypothesis test for a meantest.mean
Test of a monotonic trend in means for an ordered between-subjects factortest.mono.mean.bs
Test of monotonic trend in proportions for an ordered between-subjects factortest.mono.prop.bs
Hypothesis test for a proportiontest.prop
Hypothesis test of equal proportions in a between-subjects designtest.prop.bs
Hypothesis test for a paired-samples proportion differencetest.prop.ps
Hypothesis test for a 2-group proportion differencetest.prop2
Computes p-value for test of skewnesstest.skew
Hypothesis test for a Spearman correlationtest.spear
Hypothesis test for a 2-group Spearman correlation differencetest.spear2