I am looking at a survival analysis in a clinical project. I am using entropy weighting to balance two groups for survival outcomes.
If I run stset without weighting, all works ok
(stset time, failure (death==1))
When I try it with weighting after entropy balance, I get a "weights invalid" error.
My coding is
stset time [pweight=_webal], failure (death==1)
When I look at the _t column, there are entries of "." corresponding to the same number of "weights invalid". This same column has normal numeric entries if I don't weight.
Any ideas what I am doing wrong?
If I run stset without weighting, all works ok
(stset time, failure (death==1))
When I try it with weighting after entropy balance, I get a "weights invalid" error.
My coding is
stset time [pweight=_webal], failure (death==1)
When I look at the _t column, there are entries of "." corresponding to the same number of "weights invalid". This same column has normal numeric entries if I don't weight.
Any ideas what I am doing wrong?