摘要:
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)
编辑
摘要:
#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)
编辑
摘要:
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)
编辑
摘要:
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)
编辑
摘要:
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)
编辑