marginallet美人3

let美人3  时间:2021-01-15  阅读:()
Titlestata.
commkspline—LinearandrestrictedcubicsplineconstructionDescriptionQuickstartMenuSyntaxOptionsRemarksandexamplesStoredresultsMethodsandformulasAcknowledgmentReferencesAlsoseeDescriptionmksplinecreatesvariablescontainingalinearsplineorarestrictedcubicsplineofanexistingvariable.
Forlinearsplines,knotscanbeuserspecied,equallyspacedovertherangeofthevariable,orplacedatpercentiles.
Forrestrictedcubicsplines,alsoknownasnaturalsplines,knotlocationsarebasedonHarrell's(2001)recommendedpercentilesoruser-speciedpoints.
QuickstartLinearsplineofv1withknotsat30,40,and50mksplineknot130knot240knot350knot4=v1Addknotsat20and60mksplineknot120knot230knot340knot450knot560knot6=v1Deneknotsbyquintilesmksplineknot5=v1,pctileAsabove,butapplyfrequencyweightwvarbeforecalculatingquintilesmksplineknot5=v1[fweight=wvar],pctileRestrictedcubicsplineofv2withdefault5knotsmksplineknot=v2,cubicAsabove,butplaceknotsat30,40,and50mksplineknot=v2,cubicknots(30,40,50)MenuData>Createorchangedata>Othervariable-creationcommands>Linearandcubicsplineconstruction12mkspline—LinearandrestrictedcubicsplineconstructionSyntaxLinearsplinewithknotsatspeciedpointsmksplinenewvar1#1[newvar2#2newvark=oldvarifin,marginaldisplayknotsLinearsplinewithknotsequallyspacedoratpercentilesofdatamksplinestubname#=oldvarifinweight,marginalpctiledisplayknotsRestrictedcubicsplinemksplinestubname=oldvarifinweight,cubicnknots(#)knots(numlist)displayknotsfweightsareallowedwiththesecondandthirdsyntax;see[U]11.
1.
6weight.
OptionsOptionsmarginalisallowedwiththerstorsecondsyntax.
Itspeciesthatthenewvariablesbeconstructedsothat,whenusedinestimation,thecoefcientsrepresentthechangeintheslopefromtheprecedinginterval.
Thedefaultistoconstructthevariablessothat,whenusedinestimation,thecoefcientsmeasuretheslopesfortheinterval.
displayknotsdisplaysthevaluesoftheknotsthatwereusedincreatingthelinearorrestrictedcubicspline.
pctileisallowedonlywiththesecondsyntax.
Itspeciesthattheknotsbeplacedatpercentilesofthedataratherthanbeingequallyspacedovertherange.
nknots(#)isallowedonlywiththethirdsyntax.
Itspeciesthenumberofknotsthataretobeusedforarestrictedcubicspline.
Thisnumbermustbebetween3and7unlesstheknotlocationsarespeciedusingknots().
Thedefaultnumberofknotsis5.
knots(numlist)isallowedonlywiththethirdsyntax.
Itspeciestheexactlocationoftheknotstobeusedforarestrictedcubicspline.
Thevaluesoftheseknotsmustbegiveninincreasingorder.
Whenthisoptionisomitted,thedefaultknotvaluesarebasedonHarrell'srecommendedpercentileswiththeadditionalrestrictionthatthesmallestknotmaynotbelessthanthefth-smallestvalueofoldvarandthelargestknotmaynotbegreaterthanthefth-largestvalueofoldvar.
Ifbothnknots()andknots()aregiven,theymustspecifythesamenumberofknots.
Remarksandexamplesstata.
comRemarksarepresentedunderthefollowingheadings:LinearsplinesRestrictedcubicsplinesmkspline—Linearandrestrictedcubicsplineconstruction3LinearsplinesLinearsplinesallowestimatingtherelationshipbetweenyandxasapiecewiselinearfunction,whichisafunctioncomposedoflinearsegments—straightlines.
Onelinearsegmentrepresentsthefunctionforvaluesofxbelowx0,anotherlinearsegmenthandlesvaluesbetweenx0andx1,andsoon.
Thelinearsegmentsarearrangedsothattheyjoinatx0,x1,whicharecalledtheknots.
Anexampleofapiecewiselinearfunctionisshownbelow.
Example1Wewishtotamodeloflogincomeoneducationandagebyusingapiecewiselinearfunctionforage:lninc=b0+b1educ+f(age)+uTheknotsaretobeplacedat10-yearintervals:20,30,40,50,and60.
.
usehttps://www.
stata-press.
com/data/r16/mksp1.
mksplineage120age230age340age450age560age6=age,marginal.
regresslninceducage1-age6(outputomitted)Becausewespeciedthemarginaloption,wecouldtestwhethertheageeffectisthesameinthe30–40and40–50intervalsbyaskingwhethertheage4coefcientiszero.
Withthemarginaloption,coefcientsmeasurethechangeinslopefromtheprecedinggroup.
Specifyingmarginalchangesonlytheinterpretationofthecoefcients;thesamemodelistineithercase.
Withoutthemarginaloption,theinterpretationofthecoefcientswouldhavebeendydage=a1ifage00,ifu≤0Withouttheknots()option,thelocationsoftheknotsaredeterminedbythepercentilesrec-ommendedinHarrell(2001,23).
Thesepercentilesarebasedonthechosennumberofknotsasfollows:No.
ofknotsPercentiles3105090453565955527.
55072.
59565234159779572.
518.
3334.
175065.
8381.
6797.
5Harrellprovidesdefaultpercentileswhenthenumberofknotsisbetween3and7.
Whenusinganumberofknotsoutsidethisrange,thelocationoftheknotsmustbespeciedinknots().
AcknowledgmentTherestrictedcubicsplineportionofmksplineisbasedonthercsplinecommandbyWilliamDupontoftheDepartmentofBiostatisticsatVanderbiltUniversity.
ReferencesHarrell,F.
E.
,Jr.
2001.
RegressionModelingStrategies:WithApplicationstoLinearModels,LogisticRegression,andSurvivalAnalysis.
NewYork:Springer.
Newson,R.
B.
2012.
Sensibleparametersforunivariateandmultivariatesplines.
StataJournal12:479–504.
Orsini,N.
,andS.
Greenland.
2011.
Aproceduretotabulateandplotresultsafterexiblemodelingofaquantitativecovariate.
StataJournal11:1–29.
Alsosee[R]fp—Fractionalpolynomialregression

HostYun 新上美国CN2 GIA VPS 月15元

HostYun 商家以前是玩具主机商,这两年好像发展还挺迅速的,有点在要做点事情的味道。在前面也有多次介绍到HostYun商家新增的多款机房方案,价格相对还是比较便宜的。到目前为止,我们可以看到商家提供的VPS主机包括KVM和XEN架构,数据中心可选日本、韩国、香港和美国的多个地区机房,电信双程CN2 GIA线路,香港和日本机房,均为国内直连线路。近期,HostYun上线低价版美国CN2 GIA ...

轻云互联,香港云服务器折后22元/月 美国云服务器 1核 512M内存 15M带宽 折后19.36元/月

轻云互联成立于2018年的国人商家,广州轻云互联网络科技有限公司旗下品牌,主要从事VPS、虚拟主机等云计算产品业务,适合建站、新手上车的值得选择,香港三网直连(电信CN2GIA联通移动CN2直连);美国圣何塞(回程三网CN2GIA)线路,所有产品均采用KVM虚拟技术架构,高效售后保障,稳定多年,高性能可用,网络优质,为您的业务保驾护航。官方网站:点击进入广州轻云网络科技有限公司活动规则:1.用户购...

美国200G美国高防服务器16G,800元

美国高防服务器提速啦专业提供美国高防服务器,美国高防服务器租用,美国抗攻击服务器,高防御美国服务器租用等。我们的海外高防服务器带给您坚不可摧的DDoS防护,保障您的业务不受攻击影响。HostEase美国高防服务器位于加州和洛杉矶数据中心,均为国内访问速度最快最稳定的美国抗攻击机房,带给您快速的访问体验。我们的高防服务器配有最高层级的DDoS防护系统,每款抗攻击服务器均拥有免费DDoS防护额度,让您...

let美人3为你推荐
租服务器我想租一个服务器,越便宜越好域名服务商比较专业的域名服务商有哪些?好的域名和域名服务商没关系吧?美国vps租用如何选择国外vps服务器?海外域名外贸网站如何选择合适的海外域名?免费域名空间哪个免费空间的域名最好云服务器租用租用云服务器,要注意什么?虚拟空间免费试用目前哪里有免费试用的虚拟主机 或者服务器用啊?重庆虚拟空间重庆顺丰快递运的电脑主机19号中午11点到的第二天物流状态还是在重庆集散中心?今天能不能领导件?重庆网站空间重庆建网站选择哪家比较好,还有域名空间等,什么是虚拟主机虚拟主机是什么
vps代购 动态ip的vps 淘宝二级域名 主机优惠码 阿里云os 仿牌空间 美国翻墙 cpanel l5520 42u机柜尺寸 华为4核 泉州电信 秒杀汇 可外链网盘 in域名 根服务器 免费外链相册 下载速度测试 贵阳电信测速 免费网络 更多