I've got a really annoying problem that I tried to solve multiple days but I wasn't able. The code that I want to run is the following:
subsample2 <- as.data.frame(subsample)
m.extremistvote <- ictreg.joint(formula = resid_model1 ~ stateofeconomy + self_placement_extreme +
                      interaction_resid_1 + age + education + income + electoral_system + election_loser +
                      polity_IV + module1 + module4,
                               J=3,
                               data=extremist2, 
                               treat="gender",
                               outcome="extremist_vote",
                               constrained=TRUE,
                               maxIter = 5000)
summary(m.extremistvote)
However, I keep getting the following error message:
Error in lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...) : 
  0 (non-NA) cases"
But I've got not clue why this is the case... my dataset has no missings. I've checked this with multiple commands in R and STATA. Additionally, I tried to solve it with variations of this:
na.action=na.omit
But I'm still getting the error. I planed to attach a subsample of my STATA dataset that I exported into Rdata but I don't know where I can attach or upload something. I will try to add it. If you have any questions or need more of my code, I'm happy to provide it.
If anyone could help me, I would be more than thankful...
Edit:
Can somebody help me with this error that came after we solved the Error in lm.fit : Fehler in while (((llik.const - pllik.const) > 10^(-4)) & (counter < maxIter)) { : Fehlender Wert, wo TRUE/FALSE nötig ist in English something like Mistake in while (((llik.const - pllik.const) > 10^(-4)) & (counter < maxIter)) { : Missing value, where TRUE/FALSE is necessary? I would be really thankful as I still couldn't find the problem.
Best wishes, Klara