Changelog
Source:NEWS.md
lsr 1.0.0
Bug fixes
correlate(): when a pair of variables had too few complete observations forcor.test()to run, the entire call would abort. The affected cell is now left asNAand the remaining pairs are computed normally.correlate(),goodnessOfFitTest(),associationTest(): the internaloptions(warn = 2)used to intercept warnings was not guarded withon.exit(), so an unexpected error could leave the session’s global warn level permanently elevated. All three functions now useon.exit()to guarantee restoration.cramersV(): Yates’ continuity correction was applied by default for 2×2 tables (inherited fromchisq.test()), causing V to be less than 1 even for perfectly associated tables. Cramér’s V is now always computed from the Pearson chi-squared (no continuity correction), giving results on the correct 0-to-1 scale.goodnessOfFitTest(),associationTest(): when a factor variable had unused levels, the extra levels were silently included in the test with zero observed cases, changing degrees of freedom and p-values without any indication. Both functions now issue an informative warning when unused levels are detected, with a suggestion to calldroplevels().modeOf(),maxFreq(): all-NAor zero-length input produced a cryptic base-R"no non-missing arguments to max"warning and returned empty output. Both functions now issue an informative warning and returnNA.wideToLong(): when no column names contained the separator string, the error came from deep insidestats::reshape()with no hint that the cause was a naming-convention mismatch. The function now checks for this condition early and stops with a plain-English message.importList(): passing an unnamed or partially-named list produced a cryptic"'names' must be a character vector"error from base R. The function now checks for missing names before proceeding and stops with an informative message. Passing an empty list now also produces a message rather than silently doing nothing.
Bug fixes
correlate(): when fewer than 2 numeric variables were present in the input, the function could iterate incorrectly due to1:(n-1)evaluating toc(1, 0)rather than an empty sequence. Fixed withseq_len(n-1).oneSampleTTest(): theconf.levelargument was not forwarded tostats::t.test(), so$conf.intalways contained the 95% interval regardless of what the user requested (#9).independentSamplesTTest(),pairedSamplesTTest(),associationTest(): passing a tibble asdatacaused spurious type-check failures. Fixed by coercingdatato a plain data frame on entry (#2).
lsr 0.5.2
CRAN release: 2021-12-01
- Updates maintainer email.
- Adds basic unit tests in preparation for refactoring.
lsr 0.5.1
CRAN release: 2021-09-20
- Uses correct maintainer information.
- Ports documentation to roxygen2 and adds pkgdown site.
- Minor internal changes to fix CRAN notes.
lsr 0.5
CRAN release: 2015-03-02
- Version number advanced to match next iteration of the book.
-
maxFreq()andmodeOf()argument checking is more permissive. -
correlate()allows the user to input two numeric vectors instead of data frames / matrices.
lsr 0.3.2
CRAN release: 2014-01-31
- Convenience functions
goodnessOfFitTest(),associationTest()added. - Fixed a couple of bugs in the t-test functions.
-
pairedSamplesTTest()now supports long-form and wide-form data.
lsr 0.3.1
CRAN release: 2013-11-19
-
cohensD()argument checking is more permissive. - Convenience functions
oneSampleTTest(),pairedSamplesTTest(), andindependentSamplesTTest()added.
lsr 0.3
CRAN release: 2013-11-13
-
bars()function added. -
correlate()function added. - In general, there is a lot more checking of the user input.
-
pooledSDmoved to a sub-function ofcohensD(). - Formula argument to
cohensD()is now handled usingmodel.frame(). -
expandFactors()now returns a data frame rather than a matrix (and does so correctly for data frames with only one row). -
expandFactors()no longer drops cases withNA. - Fixed bug in
wideToLong()in which the reshape function tries to create non-unique row names. - Fixed bug in
quantileCut()when missing data are present. -
ciMean()now handles data frames and matrices.
lsr 0.2.4
CRAN release: 2013-06-13
- Fixed a bug in
etaSquared()that prevented it from correctly determining marginal terms in Type II sum of squares, and another in which the residual sum of squares was being calculated incorrectly. - Fixed a bug in
wideToLong()that stopped it working if between-subject variables did not uniquely identify the cases. -
cohensD()now includes aformulaargument in order to more closely mimic the syntax oft.test().
lsr 0.2.3
CRAN release: 2013-04-19
- Fixed a bug in which
cramersV()was incorrectly calculated when used as a measure of effect size in a goodness of fit test.
lsr 0.2.2
CRAN release: 2013-01-15
- Fixed a bug with
longToWide()andwideToLong()in which variable names were being treated as regular expressions.
lsr 0.2.1
CRAN release: 2012-11-28
- Warning statements in the help files are more explicit regarding (lack of) backwards compatibility for pre-1.0 versions of the package.
-
xfunremoved from package (duplicates existing functionality).
lsr 0.2
CRAN release: 2012-11-14
- New functions:
rowCopy(),colCopy(),permuteLevels(),expandFactors(),xfun(). -
etaSquared()now supports Type II and Type III sum of squares. - Clean up of the repeated measures reshaping functions.
lsr 0.1.1
CRAN release: 2012-01-23
-
who()now hasexpand = FALSEas the default. -
sortFrame()now correctly returns the original data frame when no sort terms are included.
lsr 0.1
CRAN release: 2011-12-11
- Initial release. Functions included:
aad(),ciMean(),cohensD(),cramersV(),etaSquared(),importList(),longRM(),longToWide(),maxFreq(),modeOf(),posthocPairwiseT(),quantileCut(),rmAll(),sortFrame(),standardCoefs(),tFrame(),unlibrary(),who(),wideRM(),wideToLong(),wideToMV().