Description Usage Arguments Value Examples
construit un echantillon selon la methode des quotas avec la methode à deux niveaux
1 |
faisabl |
resultats de la fonction faisable() |
data |
un jeu de donnée |
constr |
un tableau de quota de type df avec comme variable "variables", "modalitesé" et "objectifs" |
methode |
True pour l'approche probabiliste et False pour l'approche par optimisation |
un echantillon
1 2 3 4 5 6 7 | #constr=data.frame(variables=c("Species","Species","Species"),
#modalites=c("setosa","versicolor","virginica"),objectifs=c(25,25,40))
#faisabl=faisable(iris,constr)
#iris$risque<-sample(seq(0,1,0.01),nrow(iris),TRUE)
#iris$tauxrep<-sample(seq(0,1,0.01),nrow(iris),TRUE)
#constrech(faisabl,iris,constr,TRUE)
#constrech(faisabl,iris,constr,FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.