I want to compare the mean/median of a variable X between 2 independent samples. Variable X is continuous, ranges from <1 week to 32 weeks. The problem is, I have increments of weeks (1, 2, 3, 7, ...32) and then 30% of the data which is <1 week. How should I model this variable, should I assign it a randome value like 0.5 weeks?
Are you counting <1 week as 0 weeks? If so, PROC FMM and PROC GENMOD can fit zero-inflated count models.such as ZIP and ZINB.
It probably doesn't matter what value you assign to the <1 cases if you use a rank-based nonparametric test as are available in PROC NPAR1WAY.
Yes, this just occured to me too! Have just modelled it as 0 and used NP methods. Thank you all for your input.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.