Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
PasaOpasen committed Feb 11, 2020
1 parent 934a901 commit 8b42bb4
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Из курсов по R/спбгу/.Rhistory
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
y=rnorm(1000)
x=rnorm(1000)
c=factor(rep(c("A","B","C","D"),25))
summary(lm(y~x+c))
y=rnorm(100)
x=rnorm(100)/1000+0.2*y
c=factor(rep(c("A","B","C","D"),25))
summary(lm(y~x+c))
cars=DAAG::toycars
install.packages("DAAGbio")
cars=DAAGbio::toycars
31 changes: 31 additions & 0 deletions Из курсов по R/спбгу/mod1.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

y=rnorm(100)
x=rnorm(100)/1000+0.2*y
c=factor(rep(c("A","B","C","D"),25))

summary(lm(y~x+c))



cars=DAAGbio::toycars
# Полная модель
toy_mod <-
# Значимо ли взаимодействие? Ответ - результат drop1()
test_interaction <-
# Упрощенная модель (NA, если нельзя удалить взаимодействие)
simple_mod <-















13 changes: 13 additions & 0 deletions Из курсов по R/спбгу/спбгу.Rproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Version: 1.0

RestoreWorkspace: Default
SaveWorkspace: Default
AlwaysSaveHistory: Default

EnableCodeIndexing: Yes
UseSpacesForTab: Yes
NumSpacesForTab: 2
Encoding: UTF-8

RnwWeave: Sweave
LaTeX: pdfLaTeX

0 comments on commit 8b42bb4

Please sign in to comment.