Programming the statistical procedures from SAS

How would you model this outcome?

Reply
Frequent Contributor
Posts: 78

How would you model this outcome?

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?

SAS Super FREQ
Posts: 3,754

Re: How would you model this outcome?

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.

 

SAS Employee
Posts: 283

Re: How would you model this outcome?

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. 

Frequent Contributor
Posts: 78

Re: How would you model this outcome?

Posted in reply to StatDave_sas

Yes, this just occured to me too! Have just modelled it as 0 and used NP methods. Thank you all for your input.

Ask a Question
Discussion stats
  • 3 replies
  • 151 views
  • 2 likes
  • 3 in conversation