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
283
Modules/ado/personal/p/pcm23.ado
Normal file
283
Modules/ado/personal/p/pcm23.ado
Normal file
@ -0,0 +1,283 @@
|
||||
*! Version 2.3 10april2014
|
||||
************************************************************************************************************
|
||||
* Stata program : pcm
|
||||
* Estimate the parameters of the Partial Credit Model
|
||||
* Version 1 : December 17, 2007
|
||||
* Version 2 : July 15, 2011
|
||||
* Version 2.1 : October 18th, 2011 : -fixedvar- option, new presentation
|
||||
* Version 2.2 : October 23rd, 2013 : correction of -fixedvar- option
|
||||
* Version 2.3 : April 10th, 2014 : correction of -fixedvar- option
|
||||
*
|
||||
* Jean-benoit Hardouin, EA4275 Biostatistics, Clinical Research and Subjective Measures in Health Sciences
|
||||
* Faculties of Pharmaceutical Sciences & Medicine - University of Nantes - France
|
||||
* jean-benoit.hardouin@univ-nantes.fr
|
||||
*
|
||||
* News about this program : http://www.anaqol.org
|
||||
* FreeIRT Project : http://www.freeirt.org
|
||||
*
|
||||
* Copyright 2007-2014 Jean-Benoit Hardouin
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
************************************************************************************************************/
|
||||
|
||||
|
||||
program define pcm,eclass
|
||||
version 8.0
|
||||
syntax varlist(min=3 numeric) [if] [in] [,rsm fixed(string) fixedvar(real -1) fixedmu short COVariates(varname) fixedvargroupc(string) vargroupc]
|
||||
preserve
|
||||
tempfile pcmfile
|
||||
qui save `pcmfile',replace
|
||||
|
||||
if "`fixedmu'"!=""&`fixedvar'!=-1&"`covariates'"=="" {
|
||||
di in red "You cannot fix in the same time the mean (fixedmu option) and the variance (fixedvar option) of the latent trait without covariables"
|
||||
error 184
|
||||
}
|
||||
if "`fixed'"!=""&"`fixedmu'"==""&`fixedvar'!=-1&"`covariates'"=="" {
|
||||
di in red "You cannot fix in the same time the difficulties (fixed option) and the variance (fixedvar option) of the latent trait without covariables"
|
||||
error 184
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
ESTIMATION OF THE PARAMETERS
|
||||
********************************************************************************/
|
||||
|
||||
marksample touse
|
||||
qui keep if `touse'
|
||||
qui count
|
||||
local N=r(N)
|
||||
tokenize `varlist'
|
||||
local nbitems : word count `varlist'
|
||||
|
||||
if "`rsm'"=="" {
|
||||
di in gr "Model: " in ye "Partial Credit Model"
|
||||
}
|
||||
else {
|
||||
di in gr "Model: " in ye "Rating Scale Model"
|
||||
}
|
||||
|
||||
tempname one var w id item it obs x chosen d score
|
||||
qui gen `one'=1
|
||||
qui gen `id'=_n
|
||||
local modamax=0
|
||||
forvalues i=1/`nbitems' {
|
||||
qui rename ``i'' `var'`i'
|
||||
qui su `var'`i'
|
||||
local moda`i'=`r(max)'
|
||||
if `modamax'<`r(max)' {
|
||||
local modamax=r(max)
|
||||
}
|
||||
}
|
||||
qui genscore `var'1-`var'`nbitems' ,score(`score')
|
||||
qui collapse (sum) `w'=`one',by(`var'1-`var'`nbitems' `covariates')
|
||||
qui gen `id'=_n
|
||||
qui reshape long `var',i(`id') j(`item')
|
||||
qui drop if `var'==.
|
||||
qui gen `obs'=_n
|
||||
qui expand `=`modamax'+1'
|
||||
qui sort `id' `item' `obs'
|
||||
by `obs', sort: gen `x'=_n-1
|
||||
|
||||
qui gen `chosen'=`var'==`x'
|
||||
qui tab `item', gen(`it')
|
||||
forvalues i=1/`nbitems' {
|
||||
forvalues g=1/`modamax' {
|
||||
qui gen `d'`i'_`g'=-1*`it'`i'*(`x'>=`g')
|
||||
}
|
||||
}
|
||||
qui rename `w' `w'2
|
||||
bysort `id':egen score=sum(`x'*`chosen')
|
||||
qui su score
|
||||
local maxscore=r(max)
|
||||
|
||||
|
||||
if "`covariates'"!="" {
|
||||
qui gen covw=`covariates'*`x'
|
||||
local listcov covw
|
||||
}
|
||||
else {
|
||||
local listcov
|
||||
}
|
||||
if `fixedvar'!=-1 {
|
||||
local tmp=sqrt(`fixedvar')
|
||||
constraint 1 `x'=`tmp'
|
||||
local listconstr "constraints(1)"
|
||||
local eq "eqs(slope) nrf(1)"
|
||||
}
|
||||
local eq "eqs(slope) nrf(1)"
|
||||
*set trace on
|
||||
if "`rsm'"=="" { /*PARTIAL CREDIT MODEL*/
|
||||
*di "cas 1"
|
||||
if "`fixed'"!="" { /*FIXED ITEMS DIFFICULTIES*/
|
||||
*di "cas 2"
|
||||
qui gen offset=0
|
||||
local l=1
|
||||
forvalues i=1/`nbitems' {
|
||||
forvalues mi=1/`moda`i'' {
|
||||
qui replace offset=offset+`fixed'[1,`l']*`d'`i'_`mi'
|
||||
local ++l
|
||||
}
|
||||
}
|
||||
if "`fixedmu'"!="" {
|
||||
local mu
|
||||
}
|
||||
else {
|
||||
local mu "`x'"
|
||||
}
|
||||
*set trace on
|
||||
if "`fixedvargroupc'"!=""|"`vargroupc'"!="" {/*INEQUAL VARIANCES*/
|
||||
local var0: word 1 of `fixedvargroupc'
|
||||
local var1: word 2 of `fixedvargroupc'
|
||||
tempvar G0 G1
|
||||
qui gen `G0'=groupc<0
|
||||
qui gen `G1'=groupc>0
|
||||
qui replace `G0'=`G0'*`x'
|
||||
qui replace `G1'=`G1'*`x'
|
||||
qui eq B0: `G0'
|
||||
qui eq B1: `G1'
|
||||
constraint 1 _cons=0
|
||||
if "`fixedvargroupc'"!="" {/*FIXED INEQUAL VARIANCES*/
|
||||
constraint 2 `G0'=`=sqrt(`var0')'
|
||||
constraint 3 `G1'=`=sqrt(`var1')'
|
||||
local listconstr "constraints(1 2 3)"
|
||||
}
|
||||
else { /*FREE INEQUAL VARIANCE*/
|
||||
local listconstr "constraints(1)"
|
||||
}
|
||||
local eq "eqs(B0 B1) nrf(2)"
|
||||
}
|
||||
eq slope:`x'
|
||||
su
|
||||
tab covw
|
||||
di "ICI*******************jb"
|
||||
di "`x' : x"
|
||||
di "`listcov' : listcov"
|
||||
di "`mu' : mu"
|
||||
noi di "gllamm `x' `listcov' `mu',offset(offset) `listconstr' nocons i(`id') link(mlogit) expand(`obs' `chosen' o) weight(`w') adapt trace `eq'"
|
||||
*set trace on
|
||||
noi gllamm `x' `listcov' `mu' ,offset(offset) `listconstr' nocons i(`id') link(mlogit) expand(`obs' `chosen' o) weight(`w') adapt trace `eq' iterate(100)
|
||||
}
|
||||
else if "`short'"!="" {
|
||||
*di "cas 3"
|
||||
eq slope:`x'
|
||||
qui gllamm `x' `d'1_1-`d'`nbitems'_`modamax',i(`id') eqs(slope) link(mlogit) expand(`obs' `chosen' o) weight(`w') adapt trace nocons init iterate(100)
|
||||
tempname bsave Vsave
|
||||
matrix `bsave'=e(b)
|
||||
matrix `Vsave'=e(V)
|
||||
restore
|
||||
qui pcm `varlist' , fixed(`bsave')
|
||||
}
|
||||
else {
|
||||
*di "cas 4"
|
||||
di "no short"
|
||||
eq slope:`x'
|
||||
qui gen i=`id'
|
||||
constraint 1 `x'=1
|
||||
gllamm `x' `d'1_1-`d'`nbitems'_`modamax' `listcov',i(i) `listconstr' eqs(slope) link(mlogit) expand(`obs' `chosen' o) weight(`w') adapt trace nocons iterate(100)
|
||||
}
|
||||
}
|
||||
else {
|
||||
*di "cas 5"
|
||||
|
||||
tempname step n
|
||||
forvalues i=2/`modamax' {
|
||||
qui gen `step'`i'=-1*(`x'>=`i')
|
||||
}
|
||||
forvalues i=1/`nbitems' {
|
||||
qui gen `n'`var'`i'=(-1)*(`it'`i')*(`x')
|
||||
}
|
||||
qui sort `id' `item' `x'
|
||||
eq slope:`x'
|
||||
gllamm `x' `n'`var'1-`n'`var'`nbitems' `step'2-`step'`modamax' `listcov', i(`id') `listconstr' eqs(slope) link(mlogit) expand(`obs' `chosen' o) weight(`w') adapt trace nocons iterate(100)
|
||||
}
|
||||
|
||||
tempname b V chol
|
||||
matrix b=e(b)
|
||||
matrix V=e(V)
|
||||
local ll=e(ll)
|
||||
matrix chol=e(chol)
|
||||
|
||||
|
||||
if "`rsm'"=="" {
|
||||
di
|
||||
di in gr "Number of observations: " in ye `N'
|
||||
di in gr "Number of items: " in ye `nbitems'
|
||||
di in gr "Number of parameters: " in ye `=`nbitems'*`modamax'+1'
|
||||
di in gr "Log-likelihood: " in ye `ll'
|
||||
di
|
||||
di
|
||||
di in gr "{hline 100}"
|
||||
di in gr "Item" _col(10) "Modality" _col(20) "Parameter" _col(30) "Std Error"
|
||||
di in gr "{hline 100}"
|
||||
if "`fixed'"=="" {
|
||||
forvalues i=1/`nbitems' {
|
||||
forvalues j=1/`modamax' {
|
||||
if `j'==1 {
|
||||
di in ye "``i''" _cont
|
||||
}
|
||||
local k=(`i'-1)*`modamax'+`j'
|
||||
if "`short'"!="" {
|
||||
di in ye _col(17) `j' _col(20) %9.6f `bsave'[1,`k'] in ye _col(30) %9.6f (`Vsave'[`k',`k'])^.5
|
||||
}
|
||||
else {
|
||||
di in ye _col(17) `j' _col(20) %9.6f b[1,`k'] in ye _col(30) %9.6f (V[`k',`k'])^.5
|
||||
}
|
||||
}
|
||||
di in gr "{dup 100:-}"
|
||||
}
|
||||
}
|
||||
else {
|
||||
forvalues i=1/`nbitems' {
|
||||
forvalues j=1/`modamax' {
|
||||
if `j'==1 {
|
||||
di in ye "``i''" _cont
|
||||
}
|
||||
local k=(`i'-1)*`modamax'+`j'
|
||||
di in ye _col(17) `j' _col(20) %9.6f `fixed'[1,`k'] in ye _col(32) "(fixed)"
|
||||
}
|
||||
di in gr "{dup 100:-}"
|
||||
}
|
||||
}
|
||||
if "`fixed'"==""&"`short'"=="" {
|
||||
local k=`nbitems'*`modamax'+1
|
||||
}
|
||||
else if "`fixed'"!=""&"`fixedmu'"=="" {
|
||||
di in ye "Mu" in ye _col(20) %9.6f b[1,1] _col(29) %10.6f (V[1,1])^.5
|
||||
local k=2
|
||||
}
|
||||
else if "`fixed'"!=""&"`fixedmu'"!="" {
|
||||
di in ye "Mu" in ye _col(20) %9.6f 0 _col(32) %10.6f "(fixed)"
|
||||
local k=1
|
||||
}
|
||||
else {
|
||||
local k=1
|
||||
}
|
||||
if "`covariates'"!="" {
|
||||
di in ye "`covariates'" in ye _col(20) %9.6f b[1,`k'] _col(29) %10.6f (V[`k',`k'])^.5
|
||||
local k=`k'+1
|
||||
}
|
||||
if `fixedvar'==-1 {
|
||||
di in ye "Sigma" in ye _col(20) %9.6f b[1,`k'] _col(29) %10.6f (V[`k',`k'])^.5
|
||||
di in ye "Variance" in ye _col(20) %9.6f b[1,`k']^2 _col(29) %10.6f 2*(V[`k',`k'])^.5*b[1,`k']
|
||||
}
|
||||
else {
|
||||
di in ye "Sigma" in ye _col(20) %9.6f `fixedvar'^.5 _col(32) %10.6f "(fixed)"
|
||||
di in ye "Variance" in ye _col(20) %9.6f `fixedvar' _col(32) %10.6f "(fixed)"
|
||||
}
|
||||
di in gr "{hline 100}"
|
||||
di
|
||||
di
|
||||
}
|
||||
|
||||
end
|
Reference in New Issue
Block a user