09-01-2015
Rolf
Calcite | Level 5
Member since
01-23-2014
- 4 Posts
- 0 Likes Given
- 0 Solutions
- 0 Likes Received
-
Latest posts by Rolf
Subject Views Posted 2895 02-03-2014 10:31 AM 2895 02-03-2014 09:46 AM 2895 01-23-2014 06:41 AM 3115 01-23-2014 06:04 AM -
Activity Feed for Rolf
- Posted Re: LSMEANS for average of 2 treatment groups? on Statistical Procedures. 02-03-2014 10:31 AM
- Posted Re: LSMEANS for average of 2 treatment groups? on Statistical Procedures. 02-03-2014 09:46 AM
- Posted Re: LSMEANS for average of 2 treatment groups? on Statistical Procedures. 01-23-2014 06:41 AM
- Posted LSMEANS for average of 2 treatment groups? on Statistical Procedures. 01-23-2014 06:04 AM
02-03-2014
10:31 AM
yes, after all LSMESTIMATE trt*month 0 0 0 0.5 0 0 0 0 0 0.5 0 0 0 0 0 0 0 0; gave the same result as the 21 rows ESTIMATE statement I have been using so far. I had thought that with the LSMESTIMATE statement only 1 effect (i.e. trt, but not trt*month) could be specified because I misinterperted the following statement in the SAS documentation "In contrast to a multirow estimate in the ESTIMATE statement, you specify only a single effect in the LSMESTIMATE statement". Thanks, now I can shorten the code.
... View more
02-03-2014
09:46 AM
It seems that with LSMESTIMATE I can only get the overall LSM for trt 1&2 pooled but not the LSM at any level of a class variable. If I used time as a continuous covariate then LSMESTIMATE trt 'Combined at M2' 0.5 0.5 0 / AT time=12; probably would give me the estmate I want, but with timecat (instead time) as a class variable it doesn't work. Or am I missing something?
... View more
01-23-2014
06:41 AM
OK, instead getting the coefficients for the quantitative outcomes from PROC MIXED I could retrieve them from PROC MEANS since the coefficients are the mean values. Any ideas for an easier solution?
... View more
01-23-2014
06:04 AM
Hi, I want to analyze a mixed model for repeated measurements at months 1,3,6,9,12,18,24. Treatments are active1 active2, and placebo. The model will be adjusted for the 3 quantitative (baseline, age, duration of disease) and 3 dichotomous factors. Month is intentionally modeled as a categorical factor. PROC MIXED ORDER=internal; CLASS patid trt month covar1 covar2 covar3; MODEL y= month age disdur trt trt*month baseline baseline*month covar1 covar1*month covar2 covar2*month covar3 covar3*month / S DDFM=KR; REPEATED month / TYPE=un SUBJECT=patid; LSMEANS trt*month covar1*month covar2*month covar3*month/ CL DIFF E; I need to estimate LSM (s.e.) for the 3 treatment groups at Months 12 and Month 24. This I can do with a simple LSMEANS statement. Question: How can I estimate the average LSM (s.e.) of the 2 active treatments? The only way I can think of is to use the 'E' option in the LSMEANS statement to save the all covariates' coefficients used for constructing least square means, write the coefficients into macro variables, and then run the model again with a fairly complex ESTIMATE statement to derive the LSM of the pooled active treatments. Does anybody have a simpler solution?
... View more