User Tools

Site Tools


anova_note

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
anova_note [2025/09/18 21:03] – [with 2 levels] hkimscilanova_note [2025/09/18 21:05] (current) – [with more than 3 levels] hkimscil
Line 108: Line 108:
 </code> </code>
 ====== with more than 3 levels ====== ====== with more than 3 levels ======
- 
 <code> <code>
  
Line 114: Line 113:
 # #
 rm(list=ls()) rm(list=ls())
-# set.seed(101) 
 rnorm2 <- function(n,mean,sd){ mean+sd*scale(rnorm(n)) } rnorm2 <- function(n,mean,sd){ mean+sd*scale(rnorm(n)) }
 ss <- function(x) { ss <- function(x) {
Line 120: Line 118:
 } }
  
-n <- 21+set.seed(11) 
 +n <- 31
 na <- nb <- nc <- nd <- n na <- nb <- nc <- nd <- n
 mean.a <- 98 mean.a <- 98
-mean.b <- 100 +mean.b <- 99 
-mean.c <- 101 +mean.c <- 102 
-mean.d <- 105+mean.d <- 103
  
 A <- rnorm2(na, mean.a, sqrt(900/(na-1))) A <- rnorm2(na, mean.a, sqrt(900/(na-1)))
Line 157: Line 156:
 br <- seq(floor(min.x), ceiling(max.x), by = 1)  br <- seq(floor(min.x), ceiling(max.x), by = 1) 
 # Example bin width of 1 # Example bin width of 1
 +
  
 hist(A, breaks=br, hist(A, breaks=br,
Line 263: Line 263:
  
 # graph 로 이해  # graph 로 이해 
-x <- rf(500000, df1 = df.bet, df2 = df.wit) +x <- rf(50000, df1 = df.bet, df2 = df.wit) 
-y.max <- max(df(x,df1=df.bet, df2=df.wit))+y.max <- max(df(x, df1=df.bet, df2=df.wit))
  
 hist(x, hist(x,
Line 339: Line 339:
 summary(lm.res) summary(lm.res)
 summary(a.res) summary(a.res)
- 
  
 </code> </code>
 +
 +{{:pasted:20250918-210412.png}}
 +{{:pasted:20250918-210425.png}}
 +{{:pasted:20250918-210512.png}}
anova_note.1758196980.txt.gz · Last modified: 2025/09/18 21:03 by hkimscil

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki