I am using an election data frame with margin of victory as my running variable and I want to manually select the bandwidth in rdrobust. I now that I should use the h() command for that, but I don't understand how to put two bandwidths.
I want 0.10 and -0.10 in both sides of the cutoff. This is my code:
llr_outcome2 <- rdrobust::rdrobust(
thesis_no_na$pre_natal,
thesis_no_na$margin_of_victory,
c = 0,
kernel = "tri",
h = c(-0.1, 0.1))
summary(llr_outcome2)
and I get this error: Error in rdrobust_kweight(X_l, c, h_l, kernel) : object 'h_l' not found
Thank you for any help :)!