BookmarkSubscribeRSS Feed
rogersaj
Obsidian | Level 7

I am running an analysis with a continuous outcome and a dichotomous outcome. Here's an outline of my table:Capture5.PNG

 

 

 

 

 

 

 

 

 

 

I was able to get a p-value for trend in both the bivariate analyses (using PROC GLM> estimate; and PROC FREQ> trend)

 

Now I need to determine if it is even possible to get p-value for trend in multivariate analyses. Theoretically, does that work? Here is my code:

 

**For continuous variable;
proc glm data = ....; class hivpos3 (ref = '0') marital3 (ref = '1') lmpyear (ref = '2011') agecat4 (ref = 'Aged 15 or less') distcat (ref = 'Distance less than or equal to 5 km'); model p1v1_gest = hivpos3 marital3 lmpyear agecat4 distcat /solution; estimate "Linear trend for lmpyear" lmpyear -1 0 1; estimate "Linear trend for agecat4" agecat4 -0.564165 -0.298675 0.0995585 0.7632818; estimate "Linear trend for distcat" distcat -0.447043 -0.305405 -0.084097 0.8365453; run; quit;

 **For dichotmous variable;
proc logistic data = ....;
class hivpos3 (ref = '0') marital3 (ref = '1') lmpyear (ref = '2011') agecat4 (ref = 'Aged 15 or less') distcat (ref = 'Distance less than or equal to 5 km')/param=ref;
model returnee = hivpos3 marital3 lmpyear agecat4 distcat / link=logit stb;
run; quit;

 

 

For the continuous variable, I don't know if my "estimate" requests are valid.

For the dichotmous variable, this guidance says that "In PROC LOGISTIC, the score test in the Testing Global Null Hypothesis: BETA=0 table is equivalent to the Cochran-Armitage test" so I am only getting one p-value. Is that the way it should be - just one global p-value?

 

Thanks!

1 REPLY 1
pau13rown
Lapis Lazuli | Level 10

i think you need to explain it better, i don't understand your table at all. It seems you're misusing the terms bivariate and multivariate

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 Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 2202 views
  • 0 likes
  • 2 in conversation