# Zur Erinnerung # (Daten von Mareike PlŸschke) mp = read.table(file.path(pfad, "mp.txt")) # Inwiefern kann durv1 aus peak vorhergesagt werden? # Abbildung # Regression # Regressionslinie Ÿberlagern # Statistik fŸr die Regression # Zusammenfassung davon (Text) # Werte vorhersagen # Was ist der vorhergesagte Werte von durv1 wenn peak = 2? # Achsen Šndern damit die Linie bis peak = 2 abgebildet werden kann # Regressionslinie neu Ÿberlagern ################## library(MASS) ydata = read.table(file.path(pfad, "ydata.txt")) names(ydata) pairs(ydata) regm = lm(F2 ~ DORSX+DORSY+LIPX+LIPY, data = ydata) coef(regm) summary(regm) n = with(ydata, length(F2)) 1-(1-0.3939) * ( (n-1)/(n-4-1) ) library(MASS) stepAIC(regm) summary(regm) lip.lm = lm(F2 ~ LIPX + LIPY, data = ydata) summary(lip.lm) epg = read.table(paste(pfad, "epg.txt", sep="/")) with(epg, plot(COG, F2)) regp = lm(F2 ~ COG + I(COG^2), data = epg) k = coef(regp) with(epg, plot(COG, F2)) curve(k[1] + k[2]*x + k[3]*x^2, add=T) summary(regp) stepAIC(regp) ############################################# regp = lm(F2 ~ COG + I(COG^2), data = epg) shapiro.test(resid(regp)) plot(resid(regp)) abline(h=0, lty=2) acf(resid(regp)) plot(regp, 4) with(epg, plot(COG, F2, cex = 10*sqrt(cooks.distance(regp)))) with(epg, text(COG, F2, as.character(1:length(F2)))) ### data-frames fŸr die †bung ai = read.table(file.path(pfad, "ai.txt")) vokala = read.table(file.path(pfad, "ai.txt")) queen = read.table(file.path(pfad, "queen.txt"))