Hi all! Super new to R so totally lost on what I'm doing.. trying to run a series of multilevel regression using the lme4 code, but whenever I try and run the baseline glmer I get a 'response is constant' error. Does anyone know how I can fix this, or what I need to change?
Thanks!
> library(haven)
> hi <- read_sav("Desktop/hi.sav")
> View(hi)
> ppt=hi$ppt
> acc=as.numeric(hi$ACC)
> acc=ifelse(acc==2,1,0)
> HH=hi$HH
> bb=hi$BB
> SS=hi$SS
> CC=hi$CC
> BS=hi$BS
> HT=hi$HT
> HN=hi$HN
> CG=hi$CG
> HS=hi$HS
> TG=hi$TG
> FF=hi$FF
> RT=hi$RT
> library(Matrix)
> library(lme4)
> baselinemodel <- glmer(acc ~ (1|ppt), family = binomial)
Error: Response is constant
>