Skip to content

Instantly share code, notes, and snippets.

@masaha03
Created November 9, 2012 07:18
Show Gist options
  • Save masaha03/4044192 to your computer and use it in GitHub Desktop.
Save masaha03/4044192 to your computer and use it in GitHub Desktop.
n <- 1000000 # ケース数
df <- data.frame(v1=runif(n),
v2=runif(n),
v3=runif(n),
v4=runif(n),
v5=runif(n),
v6=runif(n))
gc()
system.time(
lm(v1 ~ v2 + v3 + v4 + v5 + v6, data=df)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment