上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页
摘要: libname clinic 'E:\sas'; *one to one reading ; proc sort data=sasuser.admitjune out=work.adsort; by id; run; proc sort data=sasuser.stresstest out=work.stsort; by id; run; data work.one_to_o... 阅读全文
posted @ 2019-10-23 22:42 be·freedom 阅读(578) 评论(0) 推荐(0) 编辑
摘要: *数字变字符; data class; set sashelp.class(rename= (age=c_age height=c_height weight=c_weight) ); age=put(c... 阅读全文
posted @ 2019-10-22 23:25 be·freedom 阅读(4084) 评论(0) 推荐(0) 编辑
摘要: libname clinic 'D:\sas'; data lab23.drug1h(drop=placebo uric); set research.cltrials(drop=triglyc); if sex='M' then delete; if placebo='YES'; TestDate='22MAY1999'd; retain Days 30; days+1; length ... 阅读全文
posted @ 2019-10-17 16:58 be·freedom 阅读(301) 评论(0) 推荐(0) 编辑
摘要: libname clinic 'D:\sas'; filename test 'D:\sas\test.txt'; *纯文本; data clinic.yb; infile test; input sex $1-2 weight 3-6 height 7-9; *和顺序有关,查看test.txt; 阅读全文
posted @ 2019-10-15 18:19 be·freedom 阅读(376) 评论(0) 推荐(0) 编辑
摘要: ods html body='D:\sas\text.html'; *创建一个text.html,将结果输出到这个文件里,可以创建多个输出,比如pdf等; proc print data=clinic.admit; run; *默认会弹出HTML和输出(list); ods html close; *将ods des... 阅读全文
posted @ 2019-10-14 20:00 be·freedom 阅读(1015) 评论(0) 推荐(0) 编辑
摘要: #3#### attach(mtcars) plot(wt,mpg) abline(lm(mpg~wt)) title('Regression of MPG on Weight') detach(mtcars) pdf('mygraph.pdf') attach(mtcars) plot(wt,mpg) abline(lm(mpg~wt)) title('Regression of MPG o... 阅读全文
posted @ 2019-10-14 10:29 be·freedom 阅读(290) 评论(0) 推荐(0) 编辑
摘要: library(multcomp) View(cholesterol) attach(cholesterol) table(trt) by(cholesterol,trt,mean) aggregate(response,by=list(trt),mean) aggregate(response,by=list(trt),sd) fit <- aov(response ~ trt ) summar 阅读全文
posted @ 2019-10-14 10:28 be·freedom 阅读(209) 评论(0) 推荐(0) 编辑
摘要: rm(list = ls()) fit <- lm(weight ~ height, women) summary(fit) women$weight fitted(fit) confint(fit) residuals(fit) with(women,plot(height,weight, xlab = "height (in inches)", ylab = "weight (in pound 阅读全文
posted @ 2019-10-14 10:27 be·freedom 阅读(149) 评论(0) 推荐(0) 编辑
摘要: library(devtools) devtools::install_github("ayhandis/creditR") library(creditR) ls("package:creditR") data("germancredit") str(germancredit) head(germancredit) sample_data <- germancredit[,c("durati... 阅读全文
posted @ 2019-10-14 10:25 be·freedom 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 描述统计 means / freq 阅读全文
posted @ 2019-10-12 15:15 be·freedom 阅读(485) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页