You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
468 B
Plaintext
13 lines
468 B
Plaintext
program define whist, rclass
|
|
version 9 /* si chgt version*/
|
|
syntax varname [aweight iweight fweight pweight/] [,title(string)] /*pond posssibles*/
|
|
di "varname :`varlist'"
|
|
tempname varpond
|
|
qui su `exp' if `varlist'!=.
|
|
qui gen `varpond'=`exp'/r(sum)*100
|
|
label variable `varpond' "fréquence"
|
|
label variable `varlist' "`varlist'"
|
|
graph bar (sum) `varpond', over(`varlist') blabel(bar, format (%4.1f)) title(`title') ytitle(pourcentage) b1title(`varlist')
|
|
end
|
|
|