Computed theoretical power for N=100 and N=200 scenarios
This commit is contained in:
Modules/ado
personal
_
a
b
bidonc
calcscore.adocalcul.adocfa.adocheckfor2.adocheckfor2.hlpcheckvars.adocheckvars.hlpclv.adoclv.sthlpclv212.adoclv214.adoclv215.adoclv216.adoclv27.adoclv29.adocompart.adocompart2.adoconc.adoconvdiv.ado
d
dege.adodelta.adodescitems.adodescscale.adodescscalev1.1.adodescscalev1.adodetect.adodetect.hlpdetect2.adodropmissing.ado
e
files
Pop8204Dep.dtacantons.dtacommpct.dtacommunes.dtacommze.dtadccentre8002.dtadcfrance8002.dtanais8003.dtarpf829099.dtarph829099.dtarphf829099.dta
g
gammasym.adogammasym.hlpgausshermite.adogausshermite.hlpgausshermite1.adogausshermite2.adogausshermite3.adogeekel2d.adogeekel2d.hlpgeekel2d4.adogengroup.adogengroup.hlpgengutt.adogenscore.adogenscore.hlpguttmax.adoguttmax1.ado
grec
h
i
imputeitems - Copie.adoimputeitems v2.4.adoimputeitems.adoimputeitems.hlpimputeitems.txtimputeitems2.adoimputeitems_1.adoimputemok.adoimputemok.hlpimputerasch.adoimputerasch.hlpirtpoly.adoisvar.ado
k
l
loevH7.adoloevH72.adoloevH73.adoloevH73.hlploevHv1.hlploevh - Copie au 17 juin 2017.adoloevh v8.2.adoloevh.adoloevh.hlploevh8-1-3.adoloevh8.adoloevh81.adoloevh812.ziploevh813.adoloevh82.adolstrfun.ado
m
Multirsoort_indicefit.adomatrixlisthtml.adomdreplace.adomi_twoway.adomi_twoway.hlpmmsrm.adommsrm.hlpmmsrm2.adomsp.adomsp.hlpmsp66.adomsp66.hlpmsp82.ado
n
p
pcm - Copie.adopcm 3.4.adopcm 4.0.adopcm 4.1.adopcm 4.2 sauv le 8nov2019.adopcm 4.2.adopcm 5.1.adopcm 5.2.adopcm 5.3.adopcm 5.4.adopcm.adopcm.sthlppcm.zippcm21.adopcm22.adopcm23.adopcm3.2.adopcm3.3.adopcm3.adopcm44.adopcm5.adopcmodel.hlppcmodel.sthlppcmodel22.adopcmodel_v.adopcmodelplus.adopcmold.adopcmtest.adopcmtest.hlppcmtest.sthlppredraschwlm.ado
qualmosta
r
old
raschfit2.adoraschfit31.adoraschpower - Copie version SIM.adoraschpower1.5.adoraschpower1.adoraschpowerpcm.adoraschpowers.hlpraschtest2.adoraschtest82.adoraschtest83.adoraschtestv7732.adoraschtestv7761.adoraschtestv7762.adoraschtestv78 avant COVARIABLES.adoraschtestv782.adoraschtestv785.adoraschtestv7jf.adorsoort.dorsoort1 (2).adorsoort1.ado
raschfit.adoraschfit.hlpraschlong.adoraschlongitudinal2.adoraschpce.adoraschpower.adoraschpower.hlpraschpower33.adoraschpower4.adoraschpower5.adoraschpower51.adoraschpower511.adoraschpower52.adoraschpower53.adoraschpower54.adoraschpower55.adoraschpower56.adoraschpower58.adoraschpower59.adoraschres.adoraschres.hlpraschtest v8.10.1.adoraschtest.adoraschtest.hlpraschtestv7.adoraschtestv7.hlpraschtestv787.adoraschtestv7v8.10.1.adoraschtestv7v8.10.adoraschtestv7v88.adoraschtestv8.10.adoraschtestv86.adorel.adorepet.adorosali.adorosali.sthlprosali22.adorosali22.sthlprosali23.adorsbynpirt.adorsoort.adorsoort.hlprsoort11.ziprsoort12.adorsoort13.adorsoortBP.ados
old
sascfa.adosenspescore.adosf36fr v1.6.adosf36fr v1.7.adosf36fr.adosf36fr.hlpsf36fr.zipsf36fr1.4.adosf36fr1.5.adosf36frv13.adosimirt - Copie.adosimirt v4.1.adosimirt v4.2.adosimirt v4.3.adosimirt v4.4.adosimirt.adosimirt.hlpsimirt.zipt
tcm.adotestclv.adotodate.adotorumm.adotosas.adotraces v4.adotraces v5 avec items numeric ne marche pas - Copie.adotraces.adotraces.hlptraces3.adotraces32.adotraces33.adotri.adotrouve.ado
v
valid.adovalid.dlgvalid.hlpvalidscale.adovalidscale.ado (old)validscale.dlgvalidscale.hlpvalidscale.sthlpvalidscaleXX.ado
w
zip
backrasch2.zipclv214.zipdetect31.zipgammasym.zipgammasym22.zipgausshermite1.zipgeekel2d43.zipgengroup12.ziphcavar32.zipimputeitems.zipimputeitems24.zipimputemok21.zipimputerasch2.ziploevH.ziploevh8.zipmmsrm4.zipmohand.zipmsp.zipmsp81.zipnpirt.zipraschfit4.zipraschpower1.4.zipraschpower1.5.zipraschpower1.zipraschpower2.zipraschpower32.zipraschtest.zipraschtest8.zipraschtest86.zipraschtest87.zipraschtestv7.zipsf36fr13.zipsimirt.zipsimirt34.zipsimirt35.ziptraces33.zip
plus
_
_eststo.ado_eststo.hlp_get_mlogit_bv.ado_get_mlogit_bvecv.ado_peabbv.ado_pebase.ado_pebase.hlp_pecats.ado_pecats.hlp_peciboot.ado_peciboot.hlp_pecidelta.ado_pecidelta.hlp_peciml.ado_pecmdcheck.ado_pecollect.ado_pecollect.hlp_pedum.ado_pedum.hlp_peife.ado_peife.hlp_pemarg.ado_pemarg.hlp_penocon.ado_penocon.hlp_pepred.ado_pepred.hlp_perhs.ado_perhs.hlp_pesum.ado_pesum.hlp_petrap.ado_petrap.hlp_peunvec.ado_peunvec.hlp_pexstring.ado
a
b
bagroup.adobagroup.hlpbamat.adobamat.hlpbaplot.adobaplot.hlpbatplot.adobatplot.hlpbinolist.adobinolist.hlpblandaltman.adobollenstine.adobollenstine.sthlpbothlist.adobothlist.hlpbrant.adobrant.hlp
backup.trkc
caplog.adocaplog.hlpcase2alt.adocase2alt.hlpcfa1.adocfa1.hlpcfa1_lf.adocheckfor2.adocheckfor2.hlpchoplist.adochoplist.hlpcmdchk.adocollist.adocollist.hlpconcord.adoconcord.dlgconcord.hlpconfa.adoconfa.mataconfa.sthlpconfa_estat.adoconfa_estat.sthlpconfa_lf.adoconfa_lfm.adoconfa_p.adoconfirmdir.adoconfirmdir.hlpconvlist.adoconvlist.hlpcountfit.adocountfit.hlpcseplist.adocseplist.hlpcvarlist.adocvarlist.hlp
d
dellist.adodellist.hlpdelta.adodelta.hlpdifflist.adodifflist.hlpdiscrim2.adodiscrim2.hlpdropvars.adodropvars.hlp
e
elapse.adoelapse.hlpeq_g.hlpeqlist.adoeqlist.hlpespoisson.adoespoisson.hlpespoisson_ll.adoespoisson_p.adoestadd.adoestadd.hlpestout.adoestout.hlpestpost.adoestpost.hlpeststo.adoeststo.hlpesttab.adoesttab.hlpexspoisson.adoexspoisson_ll.adoexspoisson_p.ado
f
g
galbr.adogalbr.dlggalbr.hlpghquad.adoghquadm.adoghquadm.hlpgllam_ll.adogllamm.adogllamm.hlpgllapred.adogllapred.hlpgllarob.adogllas_yu.adogllasim.adogllasim.hlp
h
i
i2ci.adoicc23.adoicc23.hlpiccconf.adoiccconf.hlpice.adoice.hlpiclassr.adoiclassr.hlpiclassr2.adoiclassr2.hlpimputeitems.adoimputeitems.hlpinslist.adoinslist.hlpisvar.adoisvar.hlp
j
l
l1way.adol1way.hlplabbe.adolabbe.dlglabbe.hlplclist.adolclist.hlplconfa.mlibleastlikely.adoleastlikely.hlplistblck.adolistblck.hlplistcoef.adolistcoef.hlplistutil.hlplog2html.adolog2html.hlplog2html7.adolog2html7.hlplogout.adologout.hlp
m
maplist.adomaplist.hlpmeta.dlgmeta_dialog.hlpmetabias.adometabias.dlgmetabias.hlpmetacum.dlgmetafunnel.adometafunnel.dlgmetafunnel.hlpmetainf.adometainf.dlgmetainf.hlpmetan.adometan.dlgmetan.hlpmetan7.adometan7.dlgmetan7.hlpmetan_examples.adometaninf.adometaninf.dlgmetaninf.hlpmetannt.adometannt.dlgmetannt.hlpmetap.dlgmetareg.adometareg.dlgmetareg.hlpmetareg_ll.adometareg_p.adometareg_pm.adometatrim.dlgmhplot.adomicombine.adomicombine.hlpmijoin.adomijoin.hlpmisplit.adomisplit.hlpmisschk.adomisschk.sthlpmlogplot.adomlogplot.hlpmlogtest.adomlogtest.sthlpmlogview.adomlogview.hlpmnthlist.adomnthlist.hlpmvtab1.adomvtab1.hlp
n
nct.adonct.hlpnct2.adonct2.hlpnct2inv.adonct2inv.hlpnctinv.adonctinv.hlpnctn.adonctn.hlpnctncp.adonctncp.hlpnctprob.adonctprob.hlpnicenum.adonmlab.adonmlab.hlp
o
p
polych_ll.adopolychoric.adopolychoric.hlppolychoric.zippolychoricpca.adopolychoricpca.hlppolychoricpca.zippolyser_ll.adoposlist.adoposlist.hlppostlist.adopostlist.hlppraccum.adopraccum.hlpprchange.adoprchange.hlpprcounts.adoprcounts.hlpprdc.adoprdc.hlpprelist.adoprelist.hlpprgen.adoprgen.hlpprodlist.adoprodlist.hlpprtab.adoprtab.hlpprvalue.adoprvalue.hlpprwhich.ado
r
remcor.adoreop_ll.adoreopc_ll.adoreoprob.adoreoprob.hlpreplist.adoreplist.hlprevlist.adorevlist.hlprfpr_ll1.adorfprobit.adorfprobit.hlprotlist.adorotlist.hlp
s
sasexe.adosaswrapper.adosaswrapper.hlpsavasas.adosavasas.hlpsavastata.sassdpair.adosdpair.hlpseeout.adoseeout.hlpsellist.adosellist.hlpseqlist.adoseqlist.hlpshellout.adoshellout.hlpshortdir.adoshortdir.hlpsjlatex.adosjlatex.hlpsjlog.adosjlog.hlpsjlog_7.adosortlist.adosortlist.hlpspex.adospex.hlpspost.hlpspost_footer.ihlpspostupdate.adosublist.adosublist.hlpsumlist.adosumlist.hlp
stata.trkt
takelist.adotakelist.hlptmpdir.adotmpdir.hlptorumm.adotorumm.hlptraces.adotraces.hlptraj.adotraj.hlptraj.plugintrajplot.adotrajplot.hlptrnclist.adotrnclist.hlp
u
v
w
x
RProject
250
Modules/ado/personal/d/descitems.ado
Normal file
250
Modules/ado/personal/d/descitems.ado
Normal file
@ -0,0 +1,250 @@
|
||||
capture program drop descitems
|
||||
program descitems
|
||||
syntax varlist, PARTition(numlist integer >0)
|
||||
local i = 1
|
||||
|
||||
local C = 0
|
||||
foreach z in `partition' {
|
||||
local C = `C' + `z'
|
||||
}
|
||||
|
||||
local nbvars : word count `varlist'
|
||||
|
||||
if `C' != `nbvars' {
|
||||
di in red "The sum of the numbers in the partition option is different from the number of variables precised in varlist"
|
||||
exit 119
|
||||
}
|
||||
|
||||
|
||||
local i = 1
|
||||
foreach x in `varlist' {
|
||||
local var`i' = "`x'"
|
||||
local `++i'
|
||||
}
|
||||
|
||||
/*
|
||||
qui su `var1'
|
||||
local min = r(min)
|
||||
local max = r(max)
|
||||
|
||||
forvalue i=2/`nbvars' {
|
||||
qui su `var`i''
|
||||
local minloc = r(min)
|
||||
local maxloc = r(max)
|
||||
if `minloc'<`min' local min = `minloc'
|
||||
if `maxloc'>`max' local max = `maxloc'
|
||||
}
|
||||
*/
|
||||
|
||||
foreach var in `varlist' {
|
||||
qui replace `var' = round(`var')
|
||||
}
|
||||
|
||||
local lev = ""
|
||||
foreach var in `varlist' {
|
||||
qui levelsof `var', local(levels)
|
||||
foreach l in `levels' {
|
||||
if strpos("`lev'","`l'") == 0 {
|
||||
local lev `lev' `l'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
_qsort_index `lev'
|
||||
local lev = r(slist1)
|
||||
|
||||
local i = 1
|
||||
matrix d = J(`nbvars',4,.)
|
||||
|
||||
foreach var in `varlist'{
|
||||
qui count if missing(`var')
|
||||
local ct=r(N)
|
||||
|
||||
local tx`i'=`ct'/_N
|
||||
matrix d[`i',1] = `tx`i''
|
||||
local `i++'
|
||||
}
|
||||
|
||||
matrix rownames d = `varlist'
|
||||
matrix colnames d = "missing" "alpha" "Hj"
|
||||
|
||||
local i = 1
|
||||
local y = 1
|
||||
foreach x in `partition' {
|
||||
|
||||
if `i' == 1 local s = `x'
|
||||
else local s = `s' +`x'
|
||||
|
||||
local liste = ""
|
||||
forvalues w = `y'/`s' {
|
||||
local liste `liste' `var`w''
|
||||
}
|
||||
|
||||
qui capture alpha `liste', asi item std
|
||||
|
||||
mat a = r(Alpha)
|
||||
mat at = a'
|
||||
|
||||
qui capture loevh `liste', pairwise
|
||||
matrix e = r(loevHj)
|
||||
matrix et = e'
|
||||
matrix ns = r(nbHjkNS)
|
||||
matrix nst = ns'
|
||||
|
||||
local k = 0
|
||||
forvalues j = `y'/`s' {
|
||||
local k = `k'+1
|
||||
matrix d[`j',2] = at[`k',1]
|
||||
matrix d[`j',3] = et[`k',1]
|
||||
matrix d[`j',4] = nst[`k',1]
|
||||
|
||||
}
|
||||
local `i++'
|
||||
local y = `s'+1
|
||||
}
|
||||
|
||||
/* coupure noms des items */
|
||||
/*
|
||||
local i = 1
|
||||
foreach s in `varlist' {
|
||||
local len = length("`s'")
|
||||
if `len' > 10 {
|
||||
local c = substr("`s'",1,9)
|
||||
local d = substr("`s'",-1,1)
|
||||
local var`i' "`c'" "~" "`d'"
|
||||
}
|
||||
else local var`i' = "`s'"
|
||||
*local v `v' `var`i''
|
||||
local `++i'
|
||||
}
|
||||
|
||||
|
||||
local max = 3
|
||||
forvalues i=1/`nbvars' {
|
||||
local len = length("`var`i''")
|
||||
if `len' > `max' local max = `len'
|
||||
}
|
||||
*/
|
||||
|
||||
local i = 1
|
||||
foreach v in `varlist' {
|
||||
local var`i' = abbrev("`v'",8)
|
||||
local `++i'
|
||||
}
|
||||
|
||||
local dec = 10
|
||||
local col = `dec'
|
||||
local b : word count `lev'
|
||||
|
||||
local i = 1
|
||||
local j = 1
|
||||
local y = 1
|
||||
di in blue _col(`dec') "{bf:Missing}" _c
|
||||
local col = `col'+11
|
||||
di in blue _col(`=`col'+2') "{bf:N}" _c
|
||||
|
||||
local col = `col'+9
|
||||
di _col(`col') "{bf:Response categories}" _c
|
||||
local col = `dec'+18+8*`b'
|
||||
di _col(`col') "{bf:Alpha}" _c
|
||||
local col = `col'+9
|
||||
di _col(`col') "{bf:Loevinger}" _c
|
||||
local col = `col'+12
|
||||
di _col(`col') "{bf:Number of}"
|
||||
|
||||
local col = `dec'-1
|
||||
di _col(`col') "{bf:data rate}" _c
|
||||
local col = `dec'+18
|
||||
foreach m in `lev' {
|
||||
di _col(`=`col'+2') "`m'" _c
|
||||
local col = `col'+8
|
||||
}
|
||||
local col = `dec'+17+8*`b'
|
||||
di as result _col(`col') "- item" _c
|
||||
local col = `col'+10
|
||||
di as result _col(`col') "Hj coeff" _c
|
||||
local col = `col'+12
|
||||
di as result _col(`col') "NS Hjk"
|
||||
|
||||
|
||||
|
||||
local ch = `dec'+18+8*`b'+29
|
||||
di "{hline `ch'}"
|
||||
|
||||
local i = 1
|
||||
foreach x in `varlist' {
|
||||
local varo`i' = "`x'"
|
||||
local `++i'
|
||||
}
|
||||
|
||||
|
||||
local y = 1
|
||||
foreach p in `partition' {
|
||||
|
||||
if `j' == 1 local s = `p'
|
||||
else local s = `s' +`p'
|
||||
|
||||
forvalues z = `y'/`s' {
|
||||
local col = `dec'
|
||||
di "{bf:`var`z''}" _c
|
||||
local t = d[`z',1]
|
||||
local t : di %8.2f `t'
|
||||
di _col(`col') "{text:`t'}" _c
|
||||
qui count if missing(`varo`z'')
|
||||
local m = r(N)
|
||||
local N = _N-`m'
|
||||
local N : di %4.0f `N'
|
||||
local col = `col'+10
|
||||
di _col(`col') "{text:`N'}" _c
|
||||
|
||||
local col = `col'+8
|
||||
foreach m in `lev' {
|
||||
|
||||
local f = 0
|
||||
qui levelsof `varo`z'', local(levels)
|
||||
foreach l in `levels' {
|
||||
if strpos("`levels'","`m'") == 0 {
|
||||
local f = 1
|
||||
}
|
||||
}
|
||||
/*if `f' == 1 {
|
||||
di _col(`=`col'+2') "_" _c
|
||||
}*/
|
||||
*else {
|
||||
qui count if round(`varo`z'') == `m'
|
||||
local n = r(N)
|
||||
qui count if `varo`z'' != .
|
||||
local d = r(N)
|
||||
local e = `n'/`d'
|
||||
local e : di %4.2f `e'
|
||||
if `e' != 0 di _col(`=`col'-1')"{text:`e'}" _c
|
||||
else di _col(`=`col'-1')"{text: -}" _c
|
||||
|
||||
*}
|
||||
local col = `col'+8
|
||||
}
|
||||
local col = `dec'+18+8*`b'
|
||||
local a = d[`z',2]
|
||||
local a : di %4.2f `a'
|
||||
di _col(`=`col'+1') "{text:`a'}" _c
|
||||
local h = d[`z',3]
|
||||
local h : di %5.2f `h'
|
||||
local col = `col'+10
|
||||
di _col(`=`col'+3') "{text:`h'}" _c
|
||||
local ns = d[`z',4]
|
||||
local ns : di %1.0f `ns'
|
||||
local col = `col'+12
|
||||
di _col(`=`col'+7') "{text:`ns'}"
|
||||
|
||||
|
||||
}
|
||||
local `i++'
|
||||
local `j++'
|
||||
local y = `s'+1
|
||||
di "{dup `ch':-}"
|
||||
}
|
||||
end
|
||||
|
||||
*descitems iociociociociocicocio1-ioc37, part(4 4 7 3 3 4 7 5)
|
||||
*descitems ptgi1-peur16, part(4 4 7 3 3 4 7 5)
|
||||
*descitems x1-x30, part(5 5 5 5 5 4 1)
|
Reference in New Issue
Block a user