<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>生信菜鸟团 &#187; survival</title>
	<atom:link href="http://www.bio-info-trainee.com/tag/survival/feed" rel="self" type="application/rss+xml" />
	<link>http://www.bio-info-trainee.com</link>
	<description>欢迎去论坛biotrainee.com留言参与讨论，或者关注同名微信公众号biotrainee</description>
	<lastBuildDate>Sat, 28 Jun 2025 14:30:13 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.33</generator>
	<item>
		<title>生存分析简介</title>
		<link>http://www.bio-info-trainee.com/1313.html</link>
		<comments>http://www.bio-info-trainee.com/1313.html#comments</comments>
		<pubDate>Fri, 08 Jan 2016 14:27:42 +0000</pubDate>
		<dc:creator><![CDATA[ulwvfje]]></dc:creator>
				<category><![CDATA[cancer]]></category>
		<category><![CDATA[survival]]></category>
		<category><![CDATA[生存分析]]></category>

		<guid isPermaLink="false">http://www.bio-info-trainee.com/?p=1313</guid>
		<description><![CDATA[一般我们谈生存分析，就是说的KM方法估计生存函数，并且画出生存曲线，然后还可以根 &#8230; <a href="http://www.bio-info-trainee.com/1313.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div>一般我们谈生存分析，就是说的KM方法估计生存函数，并且画出生存曲线，然后还可以根据分组检验一下它们的生存曲线是否有显著的差异！</div>
<div></div>
<div>在R里面，非常的方便，有个包survival很容易就可以做生存分析了！</div>
<div>只需要记住三个函数即可：</div>
<div>Surv<span lang="ZH-CN">：用于创建生存数据对象</span><br />
survfit<span lang="ZH-CN">：创建</span>KM<span lang="ZH-CN">生存曲线或是</span>Cox<span lang="ZH-CN">调整生存曲线</span><br />
survdiff<span lang="ZH-CN">：用于不同组的统计检验</span></div>
<div></div>
<p><span id="more-1313"></span></p>
<div><span style="font-family: SimSun;">我们用下面的数据做例子<br />
</span><a href="http://www.bio-info-trainee.com/wp-content/uploads/2016/01/clipboard3.png"><img class="alignnone size-full wp-image-1315" src="http://www.bio-info-trainee.com/wp-content/uploads/2016/01/clipboard3.png" alt="clipboard" width="633" height="406" /></a></div>
<div>对于上面的数据，我们用下面的代码做生存分析！</div>
<div>library(survival)</div>
<div>
<div><span style="font-family: Times New Roman;">my.surv &lt;- Surv(OS_MONTHS,OS_STATUS=='DECEASED')  </span></div>
<div><span style="font-family: Times New Roman;">##这个生存对象是看看病人的<b>总生存期</b>与<b>死亡状态</b>的关系</span></div>
<div><span style="font-family: Times New Roman;">###这个Surv函数第一个参数必须是数值型的时间，第二个参数是逻辑向量，1,0表示死亡与否</span></div>
<div><span style="font-family: Times New Roman;">kmfit1 &lt;- survfit(my.surv~1) ### 直接对生存对象拟合生存函数</span></div>
<div><span style="font-family: Times New Roman;">summary(kmfit1) ## 这个函数会详细打印出所有的结果，值得仔细理解</span></div>
<div><span style="font-family: Times New Roman;">plot(kmfit1)   ###画出生存曲线</span></div>
<p>survdiff(my.surv~type, data=dat)     ### 根据生存对象再加上一个分组因子来拟合生存函数，并且比较不同因子分组的生存效果</p>
</div>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bio-info-trainee.com/1313.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
