handicap_prevalence: Calculer la prevalence du handicap

View source: R/genre.R

handicap_prevalenceR Documentation

Calculer la prevalence du handicap

Description

Prevalence du handicap par type (visuel, auditif, moteur, cognitif) selon la methodologie Washington Group / recensement.

Usage

handicap_prevalence(donnees, vars_handicap, poids = NULL, sous_groupes = NULL)

Arguments

donnees

data.frame – Donnees individuelles

vars_handicap

named character – Vecteur nomme : type de handicap -> variable 0/1. Ex: c(Visuel="hand_vis", Moteur="hand_mot")

poids

character ou NULL – Variable de ponderation. Defaut : NULL

sous_groupes

character ou NULL – Variables de desagregation. Defaut : NULL

Value

Un tibble avec prevalence par type de handicap

Examples

set.seed(42)
n <- 500
individus <- data.frame(
  hand_vis = rbinom(n, 1, 0.04),
  hand_aud = rbinom(n, 1, 0.03),
  hand_mot = rbinom(n, 1, 0.05),
  sexe     = sample(c("H","F"), n, TRUE),
  poids    = runif(n, 0.8, 1.3)
)
handicap_prevalence(individus,
  vars_handicap = c(Visuel="hand_vis", Auditif="hand_aud",
                    Moteur="hand_mot"),
  poids = "poids")


statAfrikR documentation built on Sept. 20, 2026, 5:07 p.m.