BookmarkSubscribeRSS Feed
BlueNose
Quartz | Level 8

Without the noint statement I get exactly the tables above.

An intercept for each level is expected, since the model is of the form: log(Pr(y<=j)/Pr(y>j)) = aj+bx

I think it makes sense to get 4 intercepts (the fifth has no meaning). In the table above there are 2 slopes. I have 3 treatments, which are 2 dummy variables, so that also makes sense in a way. What makes you suspect that the results are not reasonable ?

The results are in the same direction of the descriptive statistics, however a few things concern me:

a. Odds ratios saying that the new treatment is 100 times better, well, 100 sounds a little bit too much

b. standard errors of the covariance parameters vary strongly when I change models. If I choose only animalsID I get S.E of approximately 1, when I take AnimalID, location and technique I get 6 and if only animalID and technique I get 14.

c. How to choose the right model. Both from the S.E point of view, and from any IC point of view, the model with only AnimalID is best...which means ignoring completely the technique and location. However if I want to choose from the other two options, AIC and BIC give opposite answers.

May I run the model as if my response is Gaussian just to get LSMEANS for descriptive purposes ?

SteveDenham
Jade | Level 19

Looks like my response got eaten by the Flying Spaghetti Monster.

I'll try again.

Estimate statements should give the odds ratios you are looking for.

For example:

estimate 'Score=0 v Score=1, Control 1 v New treatment' intercept -1 1 0 0 0 treatment -1 0 1 /exp cl;

estimate 'Score=0 v Score=(1 or 2), Control 1 v New treatment' intercept -1 0 1 0 0 treatnent -1 0 1 /exp cl;

estimate 'Score=(1 or 2) v Score=(1,2 or 3), Control 2 v New treatment' intercept 0 -1 1 0 0 treatment 0 -1 1 /exp cl;

Whatever odds ratios of interest you may have can be calculated this way.  These are only some of the possibilities.

I think the size of the standard errors really depends on the number of experimental units as well as the variance estimates.  My general feeling on random effects is that if they are design factors AND they contribute a non-negligible variance component, they should be included, no matter what the IC might say. I guess this is the "Design factors trump all others" school of thought, and I think it is critical when denominator degrees of freedom can't be adjusted, when the method is adaptive quadrature or Laplace.

Lastly, regarding LSMEANS.  If the scores are relatively evenly spaced, then the lsmeans would have some descriptive ability.  But what if the scores are ways of summarizing health, with 0=no problems and 5=dead.  Is a 2.5 that you get from averaging a 0 and a 5 really the same as the 2.5 you get from averaging a 2 and a 3?  Probably not, or we would never have wandered down this road of ordinal responses.

Good luck.

Steve Denham

BlueNose
Quartz | Level 8

Thank you for keep replying, this has become a Flying Spaghetti Monster.

I have used the estimate statement, but only now I see the difference, you specified also the intercepts while I specified only treatments.

I did what you suggested, and the last question I have for this monster thread is how do I interpret such a thing ? I thought I figured out how to interpret it until you added the intercept into the picture 🙂

My output is:

LabelEstimateS.EDFtPr>tAlphaLowerUpperexp(estimate)exp lowerexp upper
Score=0 vs Score=1, Control #1-New Treatment-2.97640.979325-3.040.00550.05-4.9933-0.95950.050980.0067830.3831
Score=0 vs Score=(1 or 2), Control #1-New Treatment-2.21880.910925-2.440.02230.05-4.0948-0.34280.10870.016660.7098

Cov ParameterSubjectestimateS.E
InterceptAnimal_ID*Location1.25346.8323
InterceptAnimal*Technique*Locati0.060526.7719

TreatmentTreatmentestimateDFlowerupper
Control 1New Treatment0.01025<0.0010.103
Control 2New Treatment0.049250.0070.335

As for the LSMEANS, you are right of course, my response is numeric with meaning, that's why I even thought of presenting averages, I wouldn't average a nominal or ordinal with no numeric value.

Thanks a lot Steve, I learned a lot from this thread !!

SteveDenham
Jade | Level 19

Well, exp(estimate) is the odds ratio for the given comparison.  You can set up as many as needed, for the comparisons of interest.  The first says that the odds ratio for a score of 1 compared to a score of 0 for the contrast of control 1 to new treatment is 0.05.  Other odds ratios can be derived.  It all depends on the comparisons you need to make.

Steve Denham

BlueNose
Quartz | Level 8

Thank you Steve for all your assistance, I think I understand now how to make interpretation of this kind of output.

The only thing I don't understand is why you wrote:

estimate 'Score=0 vs Score=(1 or 2), Control 1- New Treatment' intercept -1 0 1 0 0 Treatment 1 0 -1/cl or;

and not

estimate 'Score=0 vs Score=(1 or 2), Control 1- New Treatment' intercept -1 0.5 0.5 0 0 Treatment 1 0 -1/cl or;

since these are contrasts. my guess is that it is related to the cumulative log, but the rational still isn't entirely clear.

Thanks for everything !

P.S Regarding the first OR you gave me, the simple one, I actually think I managed to reconstruct what SAS did manually.

SteveDenham
Jade | Level 19

Your guess is correct--because the link is the cumulative log, the intercepts are for cumulative comparisons.  Not real sure, but if you were fitting a generalized logit link, your latter estimate might be more appropriate.  Perhaps someone ( or 1zmm) could help out here.

Steve Denham

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 20 replies
  • 4565 views
  • 8 likes
  • 3 in conversation