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裸机云/云服务器/VPS全场7折,独立服务器限量秒杀$30/月起

适逢中国农历新年,RAKsmart也发布了2月促销活动,裸机云、云服务器、VPS主机全场7折优惠,新用户注册送10美元,独立服务器每天限量秒杀最低30.62美元/月起,美国洛杉矶/圣何塞、日本、香港站群服务器大量补货,1-10Gbps大带宽、高IO等特色服务器抄底价格,机器可选大陆优化、国际BGP、精品网及CN2等线路,感兴趣的朋友可以持续关注下。裸机云新品7折,秒杀产品5台/天优惠码:Bare-...

炭云188元/年,上海CN2 VPS/2核/384MB内存/8GB空间/800GB流量/77Mbps端口/共享IP

炭云怎么样?炭云(之前的碳云),国人商家,正规公司(哈尔滨桓林信息技术有限公司),主机之家测评介绍过多次。现在上海CN2共享IP的VPS有一款特价,上海cn2 vps,2核/384MB内存/8GB空间/800GB流量/77Mbps端口/共享IP/Hyper-v,188元/年,特别适合电信网络。有需要的可以关注一下。点击进入:炭云官方网站地址炭云vps套餐:套餐cpu内存硬盘流量/带宽ip价格购买上...

新网,域名7月盛夏1核心2G内存.COM域名仅19.9元/首年,主机9.9元/月,企业邮箱0元体验

新网好不好?新网域名便宜吗?新网怎么样?新网是国内老牌知名域名注册商,企业正规化运营,资质齐全,与阿里云万网和腾讯云DNSPOD同为国内服务商巨头。近日新网发布了最新的七月放价季优惠活动,主要针对域名、云主机、企业邮箱、SSL证书等多款云产品推送了超值的优惠,其中.com顶级域名仅19.9元/首年,.cn域名仅16元/首年,云主机1核心2G内存3Mbps带宽仅9.9元/月,企业邮箱更是免费送1年,...

let美人3为你推荐
虚拟主机价格虚拟主机一般多少钱一年linux虚拟主机windows虚拟主机和linux虚拟主机有什么区别国外虚拟主机国外虚拟主机速度怎么样?虚拟主机推荐便宜的虚拟主机,推荐几个asp主机空间有ASP虚拟主机空间,还需要另外买Access数据库么?国内ip代理找一个好用的国内电信IP代理?域名购买域名注册和购买是一个意思吗?网站空间商哪有好一点的网站空间商?欢迎友友们给我推荐下,独立ip虚拟主机独立ip的虚拟主机和vps的区别和优势??虚拟主机评测网怎么选一台好的虚拟主机
美国虚拟主机推荐 免费二级域名申请 simcentric softlayer bash漏洞 mobaxterm unsplash hnyd 有奖调查 免费cdn 网站在线扫描 英国伦敦 中国电信网络测速 东莞服务器托管 工信部网站备案查询 广州服务器托管 rewritecond 空间排行榜 nic ftp是什么东西 更多