I am looking to run a probit model in R setting certain coefficients equal to each other.
Consider the simple example where four teams play each other once at home and once on the road:
Home <- c('NY','NY','NY','LA','LA','LA','BOS','BOS','BOS','CHI','CHI','CHI')
Away <- c('LA','CHI','BOS','NY','CHI','BOS','LA','CHI','NY','LA','NY','BOS')
HomeWin <- c(1,1,0,1,0,1,0,1,0,0,0,1)
results <- data.frame(Home,Away,HomeWin)
Suppose I want to run a probit model where I include dummy variables for the home team and the away team.
model <- glm(HomeWin ~ as.factor(Home) + as.factor(Away), family = binomial(link="probit"), data = results)
The result of the model provides coefficient estimates for three of the home teams (compared to an excluded home team) and three of the away teams (compared to an excluded away team). Suppose I want to set the model such that the home coefficient estimate for NY is equal to the away coefficient estimate for NY (and the same for the other cities). How would I do this? My full data contains 30 of these groups and with significantly more variables.
HomeWinto be the response variable? - Ben Bolkerbeta_hometo be equal tobeta_awayfor the equivalent factor levels? Not with inverted signs or something? - Oliver