28097

28097



datal <- read.tablepDANEl.txt", header = TRUE) hist(datal$X) plot(datal$Xf datal$Y)

X<-datal$X Y<-datal$Y lm(Y - X)

Im.linear <- lm(Y - X)

Im.linear summa ry (Im. linea r) plot(datal$X, datal$Y) abline(Im .linear) residuals(Im.linea r)

Im.linear.resids <- residuals(Im.linear) hist(lm.linear.resids) fitted(lm.linear) plot(X,Y)

lines(X,fitted(Im.linear)) plot(X,Y)

lines(X,fitted(Im.linear))

segments(X,fitted(Im.linear), X,Y)

plot(fitted(Im.linear), res id (Im .linear))

qqno rm(resid(Im.linea r))

pred.framę <- data.framę(X=4:100)

pp <- predict(Im.linear, int=''p"f newdata=pred.framę) pc <- predict (Im .linear, int=’'c", newdata=pred.f ramę) plot(X,Y,ylim=range(Y, pp, na.rm=T)) pred.X <- pred.frame$X

matlines(pred.X, pc, lty=c(1,2,2), col="red") matlines(pred.X, pp, lty=c(1,3,3), col="blue") predict (Im.linear,int="c") p redict(Im.linea r,int="p") cor(X,Y, use="complete.obs") cor(datal,use="complete.obs") cor.test(X,Y)

cor.test(X,Y,method="spearman")cor.test(X,Y,method="kendall") data() # lista wszystkich dostępnych zbiorów danych try(data(package = "ISv/*") )# lista zbior&w danych w pakiecie ISwR data(cystfibr) # zagaduj zbi&r danych par(mex=0.5)

pairs(cystfibr, gap=0, cex.labels=0.9) attach(cystfibr)

lm(pemax-age+sex+height+weight+bmp+fevl+rv+frc+tlc)

summary(lm(pemax~age+sex+height+weight+bmp+fevl+rv+frc+tlc))

summa ry(lm(pemax~age+sex+height+weight+bmp+fevl+rv+f rc+tlc))

summa ry(Im(pemax-age+sex+height+we ight+bmp+fev1+ rv+f rc))

summa ry(Im(pemax~age+sex+height+weight+bmp+fev1+ rv))

summary(lm(pemax~age+sex+height+weight+bmp+fevl))

summary(Im(pemax-age+sex+height+weight+bmp))

summary(lm(pemax~sex+height+weight+bmp))

summary(lm(pemax~sex+weight+bmp))

summary(lm(pemax~weight+bmp))

summary(Im(pemax-weight))

summary(lm(pemax-weight))

summa ry(lm(pemax~age+height+weight))

summary(Im(pemax-age+height))

summary(lm(pemax-age))

summary(Im(pemax-height))



Wyszukiwarka

Podobne podstrony:
example <- read.table("dane_kosiarki.txt",header=TRUE) example s.wl <- example$Y==l
dane.pr <- read.table("DANE_Predkosc_reakcji.txt", header = TRUE) attach(dane.pr) resul
data2<- read.tableCdrukarki.txt", header = FALSE)
□ X □ X READ_ME.txt - Notepad File Edit Format View Help [WALDO RANSOMWARE] Oops! Your Computer has
Image649 Type Function J 74N 74HN 74LN 87 4-Bit True/Complement Zero/One Element x 88 256 Bit Read
skanuj0047(1) J Read the photo story in Students Book on pages 60-61. Close the book. Are these 
skanuj0057(1) 2 Read the photo story in Students Book on pages 72-73. Close the book. Are these 
skanuj0077 2 Read the photo story in Students Book on pages 96-97. Close the book. Are these se
File0043 Giving and receiving Read the text. Are the sentences true or false? 6ift-qivinq in Britain
Wykład 6 wzrost = read.csv2(rWzrost.csv“, header = F)[,1] ?t. test ?chisq.test aproposftest ) Atestu
begin read(g, b); if a.Nr = b.Nr then begin znalazlem:=true; writeln(a.Nr, a.x, a.y,
03ddg01 FormlHEE3
ZDIĘCIA0056 4 Read the text carefully. Are the sentences true or false? ■ 1 TJ. Watson was correct a
j[*Read Before Usage.txt AK47 (cw).amc AK-47.amc AK74U.amc □
New?ventures Elementary Teacher s Book testy Unit 3 Test str 3 Reading Read the text. Then write tr
New?ventures Elementary Teacher s Book testy Unit 4 Test str 3 > Reading Read the text. Then wri

więcej podobnych podstron