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

Raksmart:香港高防服务器/20Mbps带宽(cn2+bgp)/40G-100Gbps防御

RAKsmart怎么样?RAKsmart香港机房新增了付费的DDoS高防保护服务,香港服务器默认接入20Mbps的大陆优化带宽(电信走CN2、联通和移动走BGP)。高防服务器需要在下单页面的IP Addresses Option里面选择购买,分:40Gbps大陆优化高防IP-$461/月、100Gbps国际BGP高防IP-$692/月,有兴趣的可以根据自己的需求来选择!点击进入:RAKsmart官...

HostNamaste$24 /年,美国独立日VPS优惠/1核1G/30GB/1Gbps不限流量/可选达拉斯和纽约机房/免费Windows系统/

HostNamaste是一家成立于2016年3月的印度IDC商家,目前有美国洛杉矶、达拉斯、杰克逊维尔、法国鲁贝、俄罗斯莫斯科、印度孟买、加拿大魁北克机房。其中洛杉矶是Quadranet也就是我们常说的QN机房(也有CC机房,可发工单让客服改机房);达拉斯是ColoCrossing也就是我们常说的CC机房;杰克逊维尔和法国鲁贝是OVH的高防机房。采用主流的OpenVZ和KVM架构,支持ipv6,免...

易探云2核2G5M仅330元/年起,国内挂机宝云服务器,独立ip

易探云怎么样?易探云是国内一家云计算服务商家,致力香港服务器、国内外服务器租用及托管等互联网业务,目前主要地区为运作香港BGP、香港CN2、广东、北京、深圳等地区。目前,易探云推出深圳或北京地区的适合挂机和建站的云服务器,国内挂机宝云服务器(可选深圳或北京地区),独立ip;2核2G5M挂机云服务器仅330元/年起!点击进入:易探云官方网站地址易探云国内挂机宝云服务器推荐:1、国内入门型挂机云服务器...

let美人3为你推荐
空间主机那个网站的空间主机比较好美国vps服务器打听下,国外V P S服务器哪个好?全能虚拟主机那家虚拟主机服务商比较不错,比较有名?空间域名空间和域名是什么?域名备案域名怎么进行备案?100m网站空间网站空间100M和1000M有什么区别 ?apache虚拟主机Apache跟虚拟主机有什么关系?东莞虚拟主机在东莞服务器租用怎么选择windows虚拟主机在windows 系统上装虚拟机有什么好的建议双线虚拟主机什么是智能双线虚拟主机?联动天下的双线主机有什么优势?
广西虚拟主机 北京域名注册 80vps directspace webhosting 名片模板psd 我爱水煮鱼 架设服务器 爱奇艺vip免费领取 四川电信商城 服务器维护 东莞主机托管 工信部网站备案查询 杭州电信宽带 免费主页空间 新网dns 电信测速器在线测网速 内存 主机配置 远程主机强迫关闭了一个现有的连接 更多