replicatorbench / 14 /input /replication_data /DAR Pitts (126zz).R
domsoos's picture
Upload folder using huggingface_hub
204f58d verified
raw
history blame contribute delete
611 Bytes
rm(list=ls())
library(data.table) # need this package for loading dataset
library(sandwich) # need this package to compute robust standard errors
setwd('*****')
FinDT <- as.data.frame(read.csv('DAR data for 126zz.csv'))
FinDT <- na.omit(FinDT)
# Estimation 'glm.cluster'
myLogit <- glm.cluster(LeavingAgency ~ JobSat + Over40 + NonMinority
+ SatPay + SatAdvan + PerfCul + Empowerment
+ RelSup + Relcow + Over40xSatAdvan,
data=FinDT, cluster="Agency",
family="binomial")
summary(myLogit)