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

DediPath($1.40),OpenVZ架构 1GB内存

DediPath 商家成立时间也不过三五年,商家提供的云服务器产品有包括KVM和OPENVZ架构的VPS主机。翻看前面的文章有几次提到这个商家其中机房还是比较多的。其实对于OPENVZ架构的VPS主机以前我们是遇到比较多,只不过这几年很多商家都陆续的全部用KVM和XEN架构替代。这次DediPath商家有基于OPENVZ架构提供低价的VPS主机。这次四折的促销活动不包括512MB内存方案。第一、D...

RAKsmart秒杀服务器$30/月,洛杉矶/圣何塞/香港/日本站群特价

RAKsmart发布了9月份优惠促销活动,从9月1日~9月30日期间,爆款美国服务器每日限量抢购最低$30.62-$46/月起,洛杉矶/圣何塞/香港/日本站群大量补货特价销售,美国1-10Gbps大带宽不限流量服务器低价热卖等。RAKsmart是一家华人运营的国外主机商,提供的产品包括独立服务器租用和VPS等,可选数据中心包括美国加州圣何塞、洛杉矶、中国香港、韩国、日本、荷兰等国家和地区数据中心(...

易速互联月付299元,美国独立服务器促销,加州地区,BGP直连线路,10G防御

易速互联怎么样?易速互联是国人老牌主机商家,至今已经成立9年,商家销售虚拟主机、VPS及独立服务器,目前商家针对美国加州萨克拉门托RH数据中心进行促销,线路采用BGP直连线路,自带10G防御,美国加州地区,100M带宽不限流量,月付299元起,有需要美国不限流量独立服务器的朋友可以看看。点击进入:易速互联官方网站美国独立服务器优惠套餐:RH数据中心位于美国加州、配置丰富性价比高、10G DDOS免...

let美人3为你推荐
租用主机哪个平台可以租电脑网站空间租赁网站空间租用费多少me域名注册.me是什么域名asp主机ASP环境是不是所有的主机都默认支持?免费虚拟主机申请免费域名和免费虚拟主机申请以及绑定求详解免费国内空间中国有什么免费的空间com域名注册com域名注册要注意哪些情况啊?我想现在注册一个com域名~海外域名怎样注册国外域名?asp网站空间谁有能申请免费的ASP空间网站?香港虚拟主机香港的虚拟主机好不好,如何选择虚拟主机?
猫咪av永久最新域名 域名投资 域名商 美国独立服务器 justhost dreamhost winhost 香港cdn directadmin 512au godaddy域名证书 服务器托管什么意思 paypal注册教程 免费网页申请 江苏双线服务器 美国凤凰城 上海电信测速 主机管理系统 qq金券 测速电信 更多