Counter logic

Reply
Occasional Contributor
Posts: 10

Counter logic

Hi everyone,

I am in urgent need of someone to help me with some logic where if a subject is a part of the study from week1-week 28 and has received product x1 and x2. But if I am interested  in finding if that subject does not have  product x1 at week 12 or week 14 then need to drop that week and move on. Basically I need a counter to see if that product is given between week 1 to week 28 and if that product is not given in certain week then drop that week. How I can do this?

Super User
Posts: 10,516

Re: Counter logic

How is your data structured? One record per subject and week or one record with multiple weeks?

Occasional Contributor
Posts: 10

Re: Counter logic

Thanks for looking into it.Its one record per week per productid

Respected Advisor
Posts: 3,899

Re: Counter logic

I believe you will get a better answer faster and you will also help us to help you if you follow the recommendations under this link https://communities.sas.com/docs/DOC-2263

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