| handicap_prevalence | R Documentation |
Prevalence du handicap par type (visuel, auditif, moteur, cognitif) selon la methodologie Washington Group / recensement.
handicap_prevalence(donnees, vars_handicap, poids = NULL, sous_groupes = NULL)
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 |
Un tibble avec prevalence par type de handicap
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.