Titlestata.
comsvybrr—BalancedrepeatedreplicationforsurveydataDescriptionQuickstartMenuSyntaxOptionsRemarksandexamplesStoredresultsMethodsandformulasReferencesAlsoseeDescriptionsvybrrperformsbalancedrepeatedreplication(BRR)estimationofspeciedstatistics(orex-pressions)foraStatacommandorauser-writtenprogram.
ThecommandisexecutedonceforeachreplicateusingsamplingweightsthatareadjustedaccordingtotheBRRmethodology.
AnyStataes-timationcommandlistedin[SVY]svyestimationmaybeusedwithsvybrr.
User-writtenprogramsthatmeettherequirementsin[P]programpropertiesmayalsobeused.
QuickstartEstimatepopulationmeanofv1usingBRRstandard-errorestimateswithsamplingweightwvar1andreplicateweightsinvariableswithprexrwvarsvyset[pweight=wvar1],brrweight(rwvar*)svybrr_b:meanv1BRRestimateofthestandarderrorofthedifferencebetweenthemeansofv2andv3svybrr(_b[v2]-_b[v3]):meanv2v3Asabove,butnametheresultdiffandsaveresultsfromeachreplicationtomydata.
dtasvybrrdiff=(_b[v2]-_b[v3]),saving(mydata):meanv2v3Sameasabovebrrdiff=(_b[v2]-_b[v3]),saving(mydata):meanv2v3Note:AnyestimationcommandmeetingtherequirementsspeciedintheDescriptionmaybesubstitutedformeanintheexamplesabove.
MenuStatistics>Surveydataanalysis>Resampling>Balancedrepeatedreplicationsestimation12svybrr—BalancedrepeatedreplicationforsurveydataSyntaxsvybrrexplist,svyoptionsbrroptionseformoption:commandsvyoptionsDescriptionif/insubpop(varnameif)identifyasubpopulationReportinglevel(#)setcondencelevel;defaultislevel(95)noheadersuppresstableheadernolegendsuppresstablelegendnoadjustdonotadjustmodelWaldstatisticnocnsreportdonotdisplayconstraintsdisplayoptionscontrolcolumnsandcolumnformats,rowspacing,linewidth,displayofomittedvariablesandbaseandemptycells,andfactor-variablelabelingcoeflegenddisplaylegendinsteadofstatisticscoeflegendisnotshowninthedialogboxesforestimationcommands.
brroptionsDescriptionMainhadamard(matrix)Hadamardmatrixfay(#)Fay'sadjustmentOptionssaving(lenamesaveresultstolename;savestatisticsindoubleprecision;saveresultstolenameevery#replicationsmseuseMSEformulaforvarianceReportingverbosedisplaythefulltablelegendnodotssuppressreplicationdotsdots(#)displaydotsevery#replicationsnoisilydisplayanyoutputfromcommandtracetracecommandtitle(text)usetextastitleforBRRresultsAdvancednodropdonotdropobservationsreject(exp)identifyinvalidresultsdof(#)designdegreesoffreedomsvyrequiresthatthesurveydesignvariablesbeidentiedusingsvyset;see[SVY]svyset.
commanddenesthestatisticalcommandtobeexecuted.
Thebyprexcannotbepartofcommand.
See[U]20Estimationandpostestimationcommandsformorecapabilitiesofestimationcommands.
Warning:Usingiforinrestrictionswilloftennotproducecorrectvarianceestimatesforsubpopulations.
Tocomputeestimatesforsubpopulations,usethesubpop()option.
svybrr—Balancedrepeatedreplicationforsurveydata3explistspeciesthestatisticstobecollectedfromtheexecutionofcommand.
explistisrequiredunlesscommandhasthesvybprogramproperty,inwhichcaseexplistdefaultstob;see[P]programproperties.
Theexpressionsinexplistareassumedtoconformtothefollowing:explistcontains(name:elist)elisteexpelistcontainsnewvarname=(exp)(exp)eexpisspecname[eqno]specnamespecnameisbb[]sese[]eqnois##nameexpisastandardStataexpression;see[U]13Functionsandexpressions.
Distinguishbetween[],whicharetobetyped,and,whichindicateoptionalarguments.
Optionssvyoptions;see[SVY]svy.
Mainhadamard(matrix)speciestheHadamardmatrixtobeusedtodeterminewhichPSUsarechosenforeachreplicate.
fay(#)speciesFay'sadjustment(Judkins1990),where0≤#≤2,butexcluding1.
Thisoptionoverridesthefay(#)optionofsvyset;see[SVY]svyset.
Optionssaving(lename,suboptions)createsaStatadatale(.
dtale)consistingof(foreachstatisticinexplist)avariablecontainingthereplicates.
doublespeciesthattheresultsforeachreplicationbesavedasdoubles,meaning8-bytereals.
Bydefault,theyaresavedasfloats,meaning4-bytereals.
Thisoptionmaybeusedwithoutthesaving()optiontocomputethevarianceestimatesbyusingdoubleprecision.
every(#)speciesthatresultsbewrittentodiskevery#threplication.
every()shouldbespeciedinconjunctionwithsaving()onlywhencommandtakesalongtimeforeachreplication.
Thiswillallowrecoveryofpartialresultsshouldsomeothersoftwarecrashyourcomputer.
See[P]postle.
replacespeciesthatlenamebeoverwrittenifitexists.
Thisoptiondoesnotappearinthedialogbox.
msespeciesthatsvybrrcomputethevariancebyusingdeviationsofthereplicatesfromtheobservedvalueofthestatisticsbasedontheentiredataset.
Bydefault,svybrrcomputesthevariancebyusingdeviationsofthereplicatesfromtheirmean.
4svybrr—BalancedrepeatedreplicationforsurveydataReportingverboserequeststhatthefulltablelegendbedisplayed.
nodotsanddots(#)specifywhethertodisplayreplicationdots.
Bydefault,onedotcharacterisdisplayedforeachsuccessfulreplication.
Ared'x'isdisplayedifcommandreturnsanerror,andan'e'isdisplayedifatleastonevalueinexplistismissing.
Youcanalsocontrolwhetherdotsaredisplayedusingsetdots;see[R]set.
nodotssuppressesdisplayofthereplicationdots.
dots(#)displaysdotsevery#replications.
dots(0)isasynonymfornodots.
noisilyrequeststhatanyoutputfromcommandbedisplayed.
Thisoptionimpliesthenodotsoption.
tracecausesatraceoftheexecutionofcommandtobedisplayed.
Thisoptionimpliesthenoisilyoption.
title(text)speciesatitletobedisplayedabovethetableofBRRresults;thedefaulttitleis"BRRresults".
eformoption;see[R]eformoption.
Thisoptionisignoredifexplistisnotb.
Advancednodroppreventsobservationsoutsidee(sample)andtheifandinqualiersfrombeingdroppedbeforethedataareresampled.
reject(exp)identiesanexpressionthatindicateswhenresultsshouldberejected.
Whenexpistrue,theresultingvaluesareresettomissingvalues.
dof(#)speciesthedesigndegreesoffreedom,overridingthedefaultcalculation,df=NpsuNstrata.
Remarksandexamplesstata.
comBRRwasrstintroducedbyMcCarthy(1966,1969a,1969b)asamethodofvarianceestimationfordesignswithtwoPSUsineverystratum.
TheBRRvarianceestimatortendstogivemorereasonablevarianceestimatesforthisdesignthanthelinearizedvarianceestimator,whichcanresultinlargevaluesandundesirablywidecondenceintervals.
InBRR,themodelistmultipletimes,onceforeachofabalancedsetofcombinationswhereonePSUisdroppedfromeachstratum.
Thevarianceisestimatedusingtheresultingreplicatedpointestimates.
AlthoughtheBRRmethodhassincebeengeneralizedtoincludeotherdesigns,Stata'simplementationofBRRrequirestwoPSUsperstratum.
Toprotecttheprivacyofsurveyparticipants,publicsurveydatasetsmaycontainreplicate-weightvariablesinsteadofvariablesthatidentifythePSUsandstrata.
Thesereplicate-weightvariablesareadjustedcopiesofthesamplingweights.
ForBRR,thesamplingweightsareadjustedfordroppingonePSUfromeachstratum;see[SVY]Varianceestimationformoredetails.
Example1:BRRreplicate-weightvariablesThesurveydesignfortheNHANESIIdata(McDowelletal.
1981)isspecicallysuitedtoBRR;therearetwoPSUsineverystratum.
svybrr—Balancedrepeatedreplicationforsurveydata5.
usehttps://www.
stata-press.
com/data/r16/nhanes2.
svydescribeSurvey:Describingstage1samplingunitspweight:finalwgtVCE:linearizedSingleunit:missingStrata1:strataSU1:psuFPC1:#ObsperUnitStratum#Units#Obsminmeanmax12380165190.
0215221856792.
511832348149174.
019942460229230.
023152252105126.
0147(outputomitted)292503215251.
5288302365166182.
5199312308143154.
0165322450211225.
0239316210,35167167.
0288Hereisaprivacy-consciousdatasetequivalenttotheoneabove;allthevariablesandvaluesremain,exceptstrataandpsuarereplacedwithBRRreplicate-weightvariables.
TheBRRreplicate-weightvariablesarealreadysvyset,andthedefaultmethodforvarianceestimationisvce(brr).
.
usehttps://www.
stata-press.
com/data/r16/nhanes2brr.
svysetpweight:finalwgtVCE:brrMSE:offbrrweight:brr_1.
.
brr_32Singleunit:missingStrata1:SU1:FPC1:Supposethatwewereinterestedinthepopulationratioofweighttoheight.
Hereweusetotaltoestimatethepopulationtotalsofweightandheightandthesvybrrprextoestimatetheirratioandvariance;weusetotalinsteadofratio(whichisotherwisepreferablehere)toillustratehowtospecifyanexplist.
6svybrr—Balancedrepeatedreplicationforsurveydata.
svybrrWtoH=(_b[weight]/_b[height]):totalweightheight(runningtotalonestimationsample)BRRreplications(32)12345BRRresultsNumberofobs=10,351Populationsize=117,157,513Replications=32Designdf=31command:totalweightheightWtoH:_b[weight]/_b[height]BRRCoef.
Std.
Err.
tP>|t|[95%Conf.
Interval]WtoH.
4268116.
0008904479.
360.
000.
4249957.
4286276ThemseoptioncausessvybrrtousetheMSEformoftheBRRvarianceestimator.
ThisvarianceestimatorwilltendtobelargerthanthepreviousbecauseoftheadditionofthefamiliarsquaredbiastermintheMSE;see[SVY]Varianceestimationformoredetails.
TheheaderforthecolumnofstandarderrorsinthetableofresultsisBRR*fortheBRRvarianceestimatorusingtheMSEformula.
.
svybrrWtoH=(_b[weight]/_b[height]),mse:totalweightheight(runningtotalonestimationsample)BRRreplications(32)12345BRRresultsNumberofobs=10,351Populationsize=117,157,513Replications=32Designdf=31command:totalweightheightWtoH:_b[weight]/_b[height]BRR*Coef.
Std.
Err.
tP>|t|[95%Conf.
Interval]WtoH.
4268116.
0008904479.
360.
000.
4249957.
4286276Thebiastermhereistoosmalltoseeanydifferenceinthestandarderrors.
Example2:Surveydatawithoutreplicate-weightvariablesForsurveydatawiththePSUandstratavariablesbutnoreplicationweights,svybrrcancomputeadjustedsamplingweightswithinitsreplicationloop.
Herethehadamard()optionmustbesuppliedwiththenameofaStatamatrixthatisaHadamardmatrixofappropriateorderforthenumberofstratainyourdataset(seethefollowingtechnicalnoteforaquickintroductiontoHadamardmatrices).
Thereare31stratainnhanes2.
dta,soweneedaHadamardmatrixoforder32(ormore)tousesvybrrwiththisdataset.
Hereweuseh32(fromthefollowingtechnicalnote)toestimatethepopulationratioofweighttoheightbyusingtheBRRvarianceestimator.
svybrr—Balancedrepeatedreplicationforsurveydata7.
usehttps://www.
stata-press.
com/data/r16/nhanes2.
svybrr,hadamard(h32):ratio(WtoH:weight/height)(runningratioonestimationsample)BRRreplications(32)12345Survey:RatioestimationNumberofstrata=31Numberofobs=10,351NumberofPSUs=62Populationsize=117,157,513Replications=32Designdf=31WtoH:weight/heightBRRRatioStd.
Err.
[95%Conf.
Interval]WtoH.
4268116.
0008904.
4249957.
4286276TechnicalnoteAHadamardmatrixisasquarematrixwithrrowsandcolumnsthathasthepropertyHrHr=rIrwhereIristheidentitymatrixoforderr.
GeneratingaHadamardmatrixwithorderr=2piseasilyaccomplished.
StartwithaHadamardmatrixoforder2(H2),andbuildyourHrbyrepeatedlyapplyingKroneckerproductswithH2.
HereistheStatacodetogeneratetheHadamardmatrixforthepreviousexample.
matrixh2=(-1,1\1,1)matrixh32=h2forvaluesi=1/4{matrixh32=h2#h32}svybrrconsumesHadamardmatricesfromlefttoright,soitisbesttomakesurethatrisgreaterthanthenumberofstrataandthatthelastcolumnistheoneconsistingofall1s.
ThiswillensurefullorthogonalbalanceaccordingtoWolter(2007).
8svybrr—BalancedrepeatedreplicationforsurveydataStoredresultsInadditiontotheresultsdocumentedin[SVY]svy,svybrrstoresthefollowingine():Scalarse(Nreps)numberofreplicationse(Nmisreps)numberofreplicationswithmissingvaluese(kexp)numberofstandardexpressionse(keexp)numberofb/seexpressionse(kextra)numberofextraestimatesaddedtobe(fay)Fay'sadjustmentMacrose(cmdname)commandnamefromcommande(cmd)samease(cmdname)orbrre(vce)brre(brrweight)brrweight()variablelistMatricese(bbrr)BRRmeanse(V)BRRvarianceestimatesWhenexplistisb,svybrrwillalsocarryforwardmostoftheresultsalreadyine()fromcommand.
MethodsandformulasSee[SVY]VarianceestimationfordetailsregardingBRRvarianceestimation.
ReferencesJudkins,D.
R.
1990.
Fay'smethodforvarianceestimation.
JournalofOfcialStatistics6:223–239.
McCarthy,P.
J.
1966.
Replication:Anapproachtotheanalysisofdatafromcomplexsurveys.
InVitalandHealthStatistics,series2.
Hyattsville,MD:NationalCenterforHealthStatistics.
.
1969a.
Pseudoreplication:Furtherevaluationandapplicationofthebalancedhalf-sampletechnique.
InVitalandHealthStatistics,series2.
Hyattsville,MD:NationalCenterforHealthStatistics.
.
1969b.
Pseudo-replication:Half-samples.
Revuedel'InstitutInternationaldeStatistique37:239–264.
McDowell,A.
,A.
Engel,J.
T.
Massey,andK.
Maurer.
1981.
PlanandoperationoftheSecondNationalHealthandNutritionExaminationSurvey,1976–1980.
VitalandHealthStatistics1(15):1–144.
Wolter,K.
M.
2007.
IntroductiontoVarianceEstimation.
2nded.
NewYork:Springer.
Alsosee[SVY]svypostestimation—Postestimationtoolsforsvy[SVY]svybootstrap—Bootstrapforsurveydata[SVY]svyjackknife—Jackknifeestimationforsurveydata[SVY]svysdr—Successivedifferencereplicationforsurveydata[SVY]Calibration—Calibrationforsurveydata[SVY]Poststratication—Poststraticationforsurveydata[SVY]Subpopulationestimation—Subpopulationestimationforsurveydata[SVY]Varianceestimation—Varianceestimationforsurveydata[U]20Estimationandpostestimationcommands
Sharktech荷兰10G带宽的独立服务器月付319美元起,10Gbps共享带宽,不限制流量,自带5个IPv4,免费60Gbps的 DDoS防御,可加到100G防御。CPU内存HDD价格购买地址E3-1270v216G2T$319/月链接E3-1270v516G2T$329/月链接2*E5-2670v232G2T$389/月链接2*E5-2678v364G2T$409/月链接这里我们需要注意,默...
酷番云怎么样?酷番云就不讲太多了,介绍过很多次,老牌商家完事,最近有不少小伙伴,一直问我台湾VPS,比较难找好的商家,台湾VPS本来就比较少,也介绍了不少商家,线路都不是很好,有些需求支持Windows是比较少的,这里我们就给大家测评下 酷番云的台湾VPS,支持多个版本Linux和Windows操作系统,提供了CN2线路,并且还是原生IP,更惊喜的是提供的是无限流量。有需求的可以试试。可以看到回程...
最近我们是不是在讨论较多的是关于K12教育的问题,培训机构由于资本的介入确实让家长更为焦虑,对于这样的整改我们还是很支持的。实际上,在云服务器市场中,我们也看到内卷和资本的力量,各大云服务商竞争也是相当激烈,更不用说个人和小公司服务商日子确实不好过。今天有看到UCloud发布的夏季促销活动,直接提前和双十一保价挂钩。这就是说,人家直接在暑假的时候就上线双十一的活动。早年的双十一活动会提前一周到十天...
se95se.com为你推荐
蓝瘦香菇被抢注最近玩网络上流传的难受香菇是什么典故access数据库access数据库的组成是什么比肩工场比肩成局 什么意思rawtoolsTF卡被写保护了怎么办?百度关键词分析如何正确分析关键词?www.522av.com我的IE浏览器一打开就是这个网站http://www.522dh.com/?mu怎么改成百度啊 怎么用注册表改啊www.544qq.COM跪求:天时达T092怎么下载QQwww.bbb551.comHUNTA551第一个第二个妹子是谁呀??19ise.com欲火难耐看什么电影 19部性感至极的佳片彪言彪语()言() 语
景安vps qq空间域名 westhost 新加坡服务器 512av gomezpeer 国外网站代理服务器 html空间 中国电信测速112 国外免费全能空间 国外代理服务器软件 电信虚拟主机 搜索引擎提交入口 香港新世界中心 wordpress中文主题 双线空间 域名转入 免费网站加速 美国服务器 建站行业 更多