BookmarkSubscribeRSS Feed
he2182
Calcite | Level 5

Hi,

I'm using publicly available data to look at trends of illicit drug use of a ten year period. I was trying to use the cochrane armitage trend test but it's not available in proc surveyfreq. Two questions:


1) How do you account for survey weights when calculating trends across time?

2) The survey weights are person level but the data is collapsed count data by yeat and illicit drug use (y/n).  How do I recalculate the survey provided person level survey weights?

Any help is appreciated! Thank you.

2 REPLIES 2
ballardw
Super User

I would take a look at SURVEYREG with year as your independent variable. Tests on the slope would aim towards significanct.

Also look at DOMAIN analysis for sub-population comparison

he2182
Calcite | Level 5

Thanks. Proc Surveyreg would work if my dependent variable was continuous but I'm look at a categorical (Yes vs No) outcome of past month illicit drug use.

I'll look into Domain analyses.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is ANOVA?

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.

Discussion stats
  • 2 replies
  • 1501 views
  • 1 like
  • 2 in conversation