Computed theoretical power for N=100 and N=200 scenarios
This commit is contained in:
12
Modules/ado/personal/w/whist.ado
Normal file
12
Modules/ado/personal/w/whist.ado
Normal file
@ -0,0 +1,12 @@
|
||||
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<66>quence"
|
||||
label variable `varlist' "`varlist'"
|
||||
graph bar (sum) `varpond', over(`varlist') blabel(bar, format (%4.1f)) title(`title') ytitle(pourcentage) b1title(`varlist')
|
||||
end
|
||||
|
Reference in New Issue
Block a user