I'm using the twang package.
When I try to create the survival function:
fitw <- prodlim(Hist(followup, om)~treatment, caseweights=matchcn$w.ATE, data=matchcn)
the following message comes:
Error in prodlim(Hist(followup, om) ~ treatment, caseweights = matchcn$w.ATE, :
The length of caseweights is: 639
this is not the same as the number of subjects with no missing values, which is 599
Can anyone help me?
Thank you in advance,
Luca