File: harmel_density.R

package info (click to toggle)
lme4 2.0-1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,860 kB
  • sloc: cpp: 2,543; makefile: 2
file content (10 lines) | stat: -rw-r--r-- 295 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
hsb <- read.csv('https://raw.githubusercontent.com/rnorouzian/e/master/hsb.csv')
source("strip_env.R")
library(lme4)
library(lattice)

m31 <- lmer(math ~ ses*meanses + (ses | sch.id), data = hsb)
p <-  strip_profile(profile(m31))
densityplot(p)
saveRDS(p, file="harmel_profile.rds", version=2)