Skip to content

hopit

0.11.6

Hierarchical Ordered Probit Models with Application to Reporting Heterogeneity

0packages depend
2.7Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Maciej J. DankoFirst published 2019-04-056 releasesCRAN page ↗

Self-reported health, happiness, attitudes, and other statuses or perceptions are often the subject of biases that may come from different sources. For example, the evaluation of an individual’s own health may depend on previous medical diagnoses, functional status, and symptoms and signs of illness; as on well as life-style behaviors, including contextual social, gender, age-specific, linguistic and other cultural factors (Jylha 2009 <doi:10.1016/j.socscimed.2009.05.013>; Oksuzyan et al. 2019 <doi:10.1016/j.socscimed.2019.03.002>). The hopit package offers versatile functions for analyzing different self-reported ordinal variables, and for helping to estimate their biases. Specifically, the package provides the function to fit a generalized ordered probit model that regresses original self-reported status measures on two sets of independent variables (King et al. 2004 <doi:10.1017/S0003055403000881>; Jurges 2007 <doi:10.1002/hec.1134>; Oksuzyan et al. 2019 <doi:10.1016/j.socscimed.2019.03.002>). The first set of variables (e.g., health variables) included in the regression are individual statuses and characteristics that are directly related to the self-reported variable. In the case of self-reported health, these could be chronic conditions, mobility level, difficulties with daily activities, performance on grip strength tests, anthropometric measures, and lifestyle behaviors. The second set of independent variables (threshold variables) is used to model cut-points between adjacent self-reported response categories as functions of individual characteristics, such as gender, age group, education, and country (Oksuzyan et al. 2019 <doi:10.1016/j.socscimed.2019.03.002>). The model helps to adjust for specific socio-demographic and cultural differences in how the continuous latent health is projected onto the ordinal self-rated measure. The fitted model can be used to calculate an individual predicted latent status variable, a latent index, and standardized latent coefficients; and makes it possible to reclassify a categorical status measure that has been adjusted for inter-individual differences in reporting behavior.

Install

Health

CRAN checks
13OK
Code health
Yes
Tests · ratio 0.18
not tracked
Coverage
100%
Documentation · exports
None
Vignettes
Yes
README
9
Dependencies · direct
Check history
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-05-02
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-25
    11 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-04-22
    12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 2 earlier snapshots
  • ERROR2026-04-18
    11 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-03-10
    12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Downloads

2.7K
CRAN downloads in the past year
Rank #13,314 · ~8/day · ~229/mo
hopit
Daily download trend is not available in this view yet.
37430 days
80790 days
2.7K1 year
Compare downloads with other packages →
Also on395 r2u11 autocran
Source & community

Repository stars, issues, and contributor activity are not tracked yet.

Dependencies

Declared dependencies
13 external dependencies (excludes base and recommended)
Depends (2)
R >= 3.5.0survey
Imports (8)
MASSRcppgraphicsstatsgrDevicesquestionrparallelRdpack
LinkingTo (2)
Enhances (0)
none
Reverse dependencies
0direct
indirect (not tracked)

Nothing depends on this yet.

Code & Tests

Code Composition
R 3,845 (58%)Rd 1,799 (27%)C++ 983 (15%)Other 6 (0%)

Test coverage

Line coverage

Expression

Tests / Examples

Functions

124 9 exported

Complexity

3.9 avg / 33 max

Call network

124 nodes / 182 edges

Test coverage has not been measured for this package yet; nodes fall back to a neutral fill.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

People & History

People (1)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Release timeline

6 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 0.11.6Latest
    2024-01-29 · current release · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.11.5
    2022-10-01 · diff ↗
  • 0.11.4
    2022-09-29 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • 0.10.3
    2019-12-08 · diff ↗
  • 0.10.2
    2019-11-19 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 0.9.0
    2019-04-05
  • R
    R 3.5.0 released · 2018-04-23

Package metadata

First published
2019-04-05
Total releases
6 / 7 yrs
License
GPL-3 OSI
Download size
not tracked yet
Installed size
not tracked yet
With dependencies
not tracked yet