I would like to include fixed effects in my Tobit regression in r. This regression has a flexible upper limit and is right-censored. This is the r code for the Tobit regression:
R1 <- tobit(LNcAttendance ~ LNcCapacityH + LNcPrAttendanceH + LNcPrAttendanceA +
TeamQuality_100 + CumSurprise_100 + HProb + HProb2 + ChampionshipS +
CLS + ELS + RelegationS + PMDRank + Temperature + Precipitation +
Derby + PromotedH + Weekday + JulyAugust + September + October +
November + December + February + March + April + MayJune,
left=-Inf, right=THESISDATA$UpperLimit, data=THESISDATA))
summary(R1)
I want to include team and calendar fixed effects in one regression and team-year fixed effects in a second regression. In my data frame, one observation represents a football match for which all variables in the Tobit regression above are collected plus calender year, hometeam, and awayteam. This is what I have tried so far:
R141 <- tobit(LNcAttendance ~ LNcCapacityH + LNcPrAttendanceH + LNcPrAttendanceA +
TeamQuality_100 + CumSurprise_100 + HProb + HProb2 + ChampionshipS +
CLS + ELS + RelegationS + PMDRank + Temperature + Precipitation +
Derby + PromotedH + Weekday + JulyAugust + September + October +
November + December + February + March + April + MayJune +
factor(HomeTeam)-1 + factor(Year)-1,left=-Inf,
right=THESISDATA$UpperLimit, data=THESISDATA)
and
R142 <- plm(LNcAttendance ~ LNcCapacityH + LNcPrAttendanceH + LNcPrAttendanceA +
TeamQuality_100 + CumSurprise_100 + HProb + HProb2 + ChampionshipS +
CLS + ELS + RelegationS + PMDRank + Temperature + Precipitation +
Derby + PromotedH + Weekday + JulyAugust + September + October +
November + December + February + March + April + MayJune,
left=-Inf, right=THESISDATA$UpperLimit, data=THESISDATA, model="whitin")