Package: multpois 0.1.0

Jacob O. Wobbrock

multpois: Analyze Nominal Response Data with the Multinomial-Poisson Trick

Dichotomous responses having two categories can be analyzed with stats::glm() or lme4::glmer() using the family=binomial option. Unfortunately, polytomous responses with three or more unordered categories cannot be analyzed similarly because there is no analogous family=multinomial option. For between-subjects data, nnet::multinom() can address this need, but it cannot handle random factors and therefore cannot handle repeated measures. To address this gap, we implement the multinomial-Poisson trick (Baker 1994) <doi:10.2307/2348134>, which transforms nominal response data into counts for each categorical alternative. These counts are then analyzed using (mixed) Poisson regression. Omnibus analyses of variance can be run along with post hoc pairwise comparisons. For users wishing to analyze nominal responses from surveys or experiments, the functions in this package essentially act as though stats::glm() or lme4::glmer() had a family=multinomial option.

Authors:Jacob O. Wobbrock [aut, cre, cph]

multpois_0.1.0.tar.gz
multpois_0.1.0.tar.gz(r-4.5-noble)multpois_0.1.0.tar.gz(r-4.4-noble)
multpois_0.1.0.tgz(r-4.4-emscripten)multpois_0.1.0.tgz(r-4.3-emscripten)
multpois.pdf |multpois.html
multpois/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/wobbrock/multpois/issues

Datasets:
  • bs2 - Between-subjects 2×2 design with dichotomous response
  • bs3 - Between-subjects 2×2 design with polytomous response
  • icecream - Mixed factorial 2×2 design with polytomous response
  • ws2 - Within-subjects 2×2 design with dichotomous response
  • ws3 - Within-subjects 2×2 design with polytomous response

2.70 score 3 scripts 5 exports 64 dependencies

Last updated 7 days agofrom:f5869990fe. Checks:OK: 2. Indexed: no.

TargetResultDate
Doc / VignettesOKOct 17 2024
R-4.5-linuxOKOct 17 2024

Exports:Anova.mpglm.mpglm.mp.conglmer.mpglmer.mp.con

Dependencies:abindbackportsbootbroomcarcarDataclicolorspacecowplotcpp11DerivdfidxdoBydplyrfansifarverFormulagenericsggplot2gluegtableisobandlabelinglatticelifecyclelme4magrittrMASSMatrixMatrixModelsmgcvmicrobenchmarkminqamodelrmunsellnlmenloptrnnetnumDerivpbkrtestpillarpkgconfigplyrpurrrquantregR6rbibutilsRColorBrewerRcppRcppEigenRdpackrlangscalesSparseMstringistringrsurvivaltibbletidyrtidyselectutf8vctrsviridisLitewithr

Analyzing nominal responses using the multinomial-Poisson trick

Rendered frommultpois.Rmdusingknitr::rmarkdownon Oct 17 2024.

Last update: 2024-10-16
Started: 2024-10-16