1. PROC LOGISTIC Contrast statements
Hello,
I do not know how to use the contrast statement of the proc logistic.
I have a study with 3 groups of treatments: Placebo, Drug_100mg and
Drug_200mg (so I compare the study drug at 2 doses and the placebo).
I want to compare the drug (100mg and 200mg) versus placebo and I use
the Placebo as the reference in the contrast.
So I code my treatment variable called TRT like this:
1: Drug_100mg
2: Drug_200mg
3: Placebo
I propose 3 choices:
1) CONTRAST "Treatment" TRT 0 1,
TRT 1 0;
2) CONTRAST "Treatment" TRT 3 3;
3) Other possibility ?
Thanks for your help.
2. Proc Logistic- Contrast statements
3. FW: Proc logistic contrast statement
> I am having trouble constructing the correct contrast statement. The > code is below. The response variable is POST_REG_ICH. There are > several main effects and two interaction effects. One of the > interaction effects is PFOPHY X HIV_POS. I want a contrast statement > that will generate the O.R. for the effect of PROPHY on POST_REG_ICH > when HIV_POS=3D1, controlling or adjusting for all other predictors, > and another contrast statement for when HIV_POS=3D0. >=20 > The second interaction term is PROPHY X INHIBITOR. INHIBITOR has > three levels. I want a contrast statement that will generate the O.R. > for the effect of PROPHY on POST_REG_ICH, controlling or adjusting > for all other predictors, for each of the three levels of INHIBITOR. >=20 >=20 > See code below. Are the contrast statements giving me what I want? =20 >=20 > Thanks for your help and insight. >=20 > Rodney >=20 > proc logistic data=3Dlogreg desc simple ; > class prophy home_infusion home_infusion > pre_reg_ich htype hlevel(ref=3D'Mild') hiv_pos hepab_pos > hepac_pos alcohol elevated_pt > inhibitor(ref=3D'None') race_g(ref=3D'White (non-Hispanic)') > penultimate_age_group(ref=3D'10--15') / desc param=3Dref ; > model post_reg_ich=3Dprophy home_infusion pre_reg_ich htype hlevel > inhibitor=20 > hiv_pos hepab_pos hepac_pos alcohol elevated_pt > race_g=20 > penultimate_age_group prophy*inhibitor > prophy*hiv_pos=20 > / /*include=3D13 selection=3Dstepwise */ lackfit > scale=3Dnone aggregate ;=09 > contrast 'Prophy X HIV_pos' prophy 1 hiv_pos 1 > prophy*hiv_pos 1 0 > contrast 'Prophy X HIV_negative' prophy 1 hiv_pos 0 / > estimate=3Dboth; > contrast 'Prophy X High Inhibitor' prophy 1 inhibitor 0 > 1 / estimate=3Dboth; > contrast 'Prophy X Low inhibitor' prophy 1 inhibitor 1 0 > / estimate=3Dboth; > contrast 'Prophy X No inhibitor' prophy 1 inhibitor 0 0 > / estimate=3Dboth; > run;=20 >=20 >=20 >=20 > Rodney J. Presley, PhD > Division of Hereditary Blood Disorders > National Center on Birth Defects and Developmental Disabilities > Centers for Disease Control and Prevention > 1600 Clifton Road, MS E 64 > Atlanta, GA 30333 > Work Phone: 404-718-8630 > Main Number: 404-718-8600 > Fax: 404-718-8650 > Email: XXXX@XXXXX.COM >=20 >=20
4. Contrast statements for interaction effects in Proc Logistic
5. Contrast statments in Proc Logistic
I running a model in Proc Logistic with a class variable that has three levels. I used the contrast statement to compare each pair of levels (i.e., 1 vs 2, 2 vs 3, 1 vs. 3). However, when I did this there was a warning in the log that said ome rows of the L matrix for the CONTRAST statement 'habitat' are linearly dependent. These rows will be ignored. What does this mean? Can I trust the results in the output? Ie tried doing this using different coding schemes (specifying param=glm and param=effect in the class statement) and get the same warning both times. Any advice? Thanks!
6. polynomial contrast in proc logistic
7. contrast statements and proc GLM code problem
person is not on SAS L
is there any good references on proc GLM and how to set up contrast statements?
I've sent info on archives, but that and the manual is not real clear.
thanks.
-----Original Message-----
From: Kraft, Ottalee (UMC-Student)
Sent: Monday, August 11, 2003 5:46 PM
Subject: SAS Contrast Statements
After working with Ron today I have solved some of my SAS problems but I am still stuck on the contrast statements to get the comparisons I want. My class variable, Type represents 4 conditions. I want to be able to compare Type 1 to Types 2, 3, and 4 combined; to compare Type 2 to Types 3 and 4 combined; to compare Type 3 to Type 4. Ron initially helped me set up some IF statements to break my data by type and then run the proc glm. However, as I understand statistical comparisions, this partitioning of my data will result in incorrect analyses. I have a couple of questions I need help with:
1. How do I set up the contrast statements in SAS to do the comparisions I need?
2. Is the repeated measures ANOVA or the MANOVA preferable for any reason? I seem to get comparable results.
3. I will need to add some additional covariates to these models ( age, gender, and a couple of yes/no type responses). Does this change your responses to questions 1 & 2?
The code I have set up so far is:
____________________________
**REPEATED MEASURES ANOVA**
____________________________
proc glm data=diss;
class Type;
model RatingMHCX
RatingMHCY
RatingMHCZ = Type / nouni;
repeated rating 3 contrast (1) / summary;
lsmeans Type / stderr pdiff cov out=adjmeans;
title1 'results of repeated measures glm';
quit;
run;
__________________________
** MANOVA **
__________________________
proc glm data=diss;
class Type;
model RatingMHCX
RatingMHCY
RatingMHCZ = Type;
means Type / Tukey;
means Type;
manova H = Type;
title1 'results of glm -- manova';
quit;
run;
**********************************************************************
This electronic communication is from the Missouri Department of Health and Senior Services and is confidential, privileged and intended only for the use of the recipient named above. If you are not the intended recipient or the employee or agent responsible for delivering this information to the intended recipient, unauthorized disclosure, copying, distribution or use of the contents of this transmission is strictly prohibited. If you have received this message in error, please notify the sender immediately at the following email address: XXXX@XXXXX.COM or by calling (573) 751-6400.. Thank you.
**********************************************************************