全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SPSS论坛
5272 5
2013-11-08
最近用spss做课题,在logistic单因素和KM分析时,由于变量很多,需要不停重复劳动,不知道有无大侠有解决之道。万分感谢!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2013-11-8 22:25:55
难道,没有人能解决吗?谢谢大侠施以援手啊
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2013-12-8 23:04:35
flyloop 发表于 2013-11-8 22:25
难道,没有人能解决吗?谢谢大侠施以援手啊
好像用逐步回归可以自动实现的
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2014-3-20 16:54:56
直接搞程序啊
syntax
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2014-3-22 08:15:06
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2014-3-22 08:15:14
Examples (KM command)

KM LENGTH BY SEXRACE
/STATUS=EMPLOY EVENT (1) LOST (2)
/STRATA=LOCATION.
  • Survival analysis is used to examine the length of unemployment. The survival variable LENGTH contains the number of months a subject is unemployed. The factor variable SEXRACE combines sex and race factors.
  • A value of 1 on the variable EMPLOY indicates the occurrence of the event (employment). All other observed cases are censored.
  • A value of 2 on EMPLOY indicates cases lost to follow-up. Cases with other values for EMPLOY are known to have remained unemployed during the course of the study. KM separates the two types of censored cases in the KM table if LOST is specified.
  • For each combination of SEXRACE and LOCATION, one KM table is produced, followed by the mean and median survival times with standard errors and confidence intervals.
  • Using Kaplan-Meier to Test Competing Pain Relief Treatments

KM
  time  BY treatment  /STATUS=status(1)
  /PRINT TABLE MEAN
  /PERCENTILES
  /PLOT SURVIVAL
  /TEST LOGRANK BRESLOW TARONE
  /COMPARE OVERALL POOLED .
  • Survival analysis is used to examine the time until the drug takes effect. The survival variable time is the time until effect. The factor variable treatment marks whether the experimental drug or the existing drug was administered.
  • A value of 1 on the variable status indicates the occurrence of the event (drug takes effect). All other observed cases are censored.
  • The PRINT subcommand produces a KM table for each value of treatment, followed by the mean and median survival times with standard errors and confidence intervals.
  • The PERCENTILES subcommand, specified without keywords, requests the quartiles of the survival times for each value of treatment.
  • The PLOT subcommand requests the cumulative survival distribution for each value of treatment.
  • The TEST subcommand requests that the log rank, Breslow, and Tarone-Ware statistics be used to test the equality of the survival curves defined by the values of treatment. Per the COMPARE subcommand, all factor levels are compared in a single test.
  • For discussion of output from this syntax and to place the example in context, see Using Kaplan-Meier Survival Analysis to Test Competing Pain Relief Treatments.

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群