Hello,
I have been running regression analysis on CFU outcomes where there is a lower limits of detection (3 log10). I have total of 134 observations. Among those I have 23 observations that were zero ( but not true zero they are under detection limit) and 2 other missing observations. I have treatment and clustered pen effects that I would like to measure effects of treatment on CFU using linear regression with cluster of pen effects.
Basically my goal is to impute those observations between zero and lower limits of detection. Here are the steps I followed:
mi set wide
mi register regular treatment pen
mi register imputed cfu
gen ulimplog10=3
gen llimplog10=0
replace llimp = cfu if cfu> 0 & cfu< 99999999999
replace ulimplog10 = cfu if cfu> 0 & cfu< 99999999999
mi impute intreg cfuimputed b(1).treatment pen, add(20) rseed(1234) ll(llimplog10) ul(ulimplog10)
mi estimate: mixed cfuimputed ib(1).treatment|| pen_id:
mimrgns treatment, cmdmargins
marginsplot, xdimension(trteatment) recast(bar)
The model converged nicely. I wonder if this is a valid approach?
specially adding treatment and pen during imputation process?
Many thanks in advance
Gizem
I have been running regression analysis on CFU outcomes where there is a lower limits of detection (3 log10). I have total of 134 observations. Among those I have 23 observations that were zero ( but not true zero they are under detection limit) and 2 other missing observations. I have treatment and clustered pen effects that I would like to measure effects of treatment on CFU using linear regression with cluster of pen effects.
Basically my goal is to impute those observations between zero and lower limits of detection. Here are the steps I followed:
mi set wide
mi register regular treatment pen
mi register imputed cfu
gen ulimplog10=3
gen llimplog10=0
replace llimp = cfu if cfu> 0 & cfu< 99999999999
replace ulimplog10 = cfu if cfu> 0 & cfu< 99999999999
mi impute intreg cfuimputed b(1).treatment pen, add(20) rseed(1234) ll(llimplog10) ul(ulimplog10)
mi estimate: mixed cfuimputed ib(1).treatment|| pen_id:
mimrgns treatment, cmdmargins
marginsplot, xdimension(trteatment) recast(bar)
The model converged nicely. I wonder if this is a valid approach?
specially adding treatment and pen during imputation process?
Many thanks in advance
Gizem
Comment