MyNixOS website logo
Description

Estimation of Group Means and SDs from Binned Count Data.

Estimates group-level means and standard deviations from binned (coarsened) count data, where the within-bin scores are unobserved. The package implements three methods that share a common output structure: bin_means() (a fast estimator that assumes within-district normality and uses pooled bin proportions to derive bin-conditional truncated-normal expectations), mle_hetop() (maximum likelihood for the heteroskedastic ordered probit model of Reardon, Shear, Castellano and Ho 2017 <doi:10.3102/1076998616666279>), and fh_hetop() (the Bayesian Fay-Herriot variant of Lockwood, Castellano and Shear 2018 <doi:10.3102/1076998618795124>). The mle_hetop() and fh_hetop() functions are forked from the 'HETOP' package by J. R. Lockwood ('CRAN', last released 2019). mle_hetop() has been modified to speed up the runtime via a vectorized inner loop and to remove two user-facing arguments (fixedcuts and svals) that some users found confusing; cutpoints and starting values are now derived internally from the data.

binest

Estimation of group-level means and standard deviations from binned (coarsened) count data. The package implements three methods with a common output structure:

  • bin_means() — fast per-group estimator under within-group normality. Linear in the number of groups times the number of bins.
  • mle_hetop() — maximum-likelihood fit of the heteroskedastic ordered probit (HETOP) model.
  • fh_hetop() — Bayesian variant of HETOP via MCMC.

This package was previously called HETOP and was maintained by J. R. Lockwood; it is renamed and extended to reflect the broader set of estimators now included.

Installation

# install.packages("remotes")
remotes::install_github("paulvonhippel/binest")

(Or install.packages("binest") once on CRAN.)

A quick example

library(binest)
data(tx_g6_math_2018)

ngk <- with(tx_g6_math_2018,
            cbind(unsatisfactory, approaches, meets, masters))
cuts <- c(1536, 1653, 1772)

fit <- bin_means(ngk, cutpoints = cuts)
cor(fit$est_raw$group_mean_mle, tx_g6_math_2018$reported_mean)

See vignette("binest") for a full comparison of the three estimators on the Texas STAAR Grade-6 mathematics data.

References

  • Fisher, R. A. (1922). On the mathematical foundations of theoretical statistics. Philosophical Transactions of the Royal Society of London A, 222, 309-368.
  • Lockwood, J. R., Castellano, K. E., & Shear, B. R. (2018). Flexible Bayesian models for inferences from coarsened, group-level achievement data. JEBS, 43(6), 663-692.
  • Reardon, S. F., Shear, B. R., Castellano, K. E., & Ho, A. D. (2017). Using heteroskedastic ordered probit models to recover moments of continuous test score distributions from coarsened data. JEBS, 42(1), 3-45.
  • Sheppard, W. F. (1898). On the calculation of the most probable values of frequency-constants for data arranged according to equidistant divisions of a scale. PLMS, 29, 353-380.

License

GPL (>= 2).

Metadata

Version

0.2-1

License

Unknown

Platforms (79)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    uefi
    wasip1
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-uefi
  • aarch64-windows
  • aarch64_be-none
  • arc-linux
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-linux
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • sh4-linux
  • vc4-none
  • wasm32-wasip1
  • wasm64-wasip1
  • x86_64-cygwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-uefi
  • x86_64-windows