If we observe two censored distributions, where all observations above a cutoff are set at the value of the cutoff, how can we test whether the observable distributions suggest that the two censored distributions come from the same true distribution?
We could imagine this for income data where incomes above a certain level are reported in a form like '\$250k/year and greater.' Or we could imagine data on campaign contributions where people can only donate $\$X$, but some probably would have donated more in the absence of the cap.
For example:
d1 <- rnorm(n = 1000, sd = 5)
d2 <- rnorm(n = 1000, sd = 5)
d1 <- ifelse(d1>5,5,d1)
d2 <- ifelse(d2>10,10,d2)
par(mfrow=c(1,2))
hist(d1, xlim = c(-20, 20), ylim = c(0,200))
hist(d2, xlim = c(-20, 20), ylim = c(0,200))