1 Star 0 Fork 51

iver3on/Cookbook-for-R-Chinese

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
tt.R 714 Bytes
一键复制 编辑 原始数据 按行查看 历史
iver3on 提交于 2020-09-22 14:43 . add tt.R.
library(rms)
library(foreign)
library(survival)
seer<-read.table("SEER_ES_before.txt",header =TRUE,sep = "\t",encoding = "UTF-8",skipNul = TRUE)
seer$age<-factor(seer$age,labels = c("<65",">=65"))
seer$sex<-factor(seer$sex,labels = c("male","female"))
#seer$race<-factor(seer$race,labels = c("white","black","others"))
#seer$martital status<-factor(seer$martital status,labels = c("single","married","separated"))
#seer$histology<-factor(seer$histology,labels = c("adenocarcinoma","squamous cell carcinoma"))
#seer$grade<-factor(seer$grade,labels = c("well differetiated","moderately"))
#seer$tumor<-factor(seer$tumor,labels = c("upper third of esophagus","middle"))
seer$age
seer$sex
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
R
1
https://gitee.com/iver3on/Cookbook-for-R-Chinese.git
git@gitee.com:iver3on/Cookbook-for-R-Chinese.git
iver3on
Cookbook-for-R-Chinese
Cookbook-for-R-Chinese
master

搜索帮助