Date: Tue, 19 Nov 2002 00:49:58 -0800
Reply-To: Johnson Chang <jchangmail@YAHOO.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Johnson Chang <jchangmail@YAHOO.COM>
Organization: http://groups.google.com/
Subject: repeated measurements on different parts of liver tissue
Content-Type: text/plain; charset=ISO-8859-1
Hello, everyone,
I have a question that involved with repeated measurements on four
parts of mouse liver. total six samples of mouse liver. two of the
four parts from every liver are treated by one drug and the other two
are treated by another drug. what i interest is the effect of drug and
whether the parts of liver affect the drug. what i put is:
data mydata;
input treat mouse response_part1 response_part2;
datalines;
1 1 nn.nn nn.nn
2 1 nn.nn nn.nn
1 2 nn.nn nn.nn
2 2 nn.nn nn.nn
1 3 nn.nn nn.nn
2 3 nn.nn nn.nn
1 4 nn.nn nn.nn
2 4 nn.nn nn.nn
1 5 nn.nn nn.nn
2 5 nn.nn nn.nn
1 6 nn.nn nn.nn
2 6 nn.nn nn.nn
;
proc glm data=mydata;
class treat mouse;
model response_part1 response_part2 =treat;
repeated part 2 /printe summary;
lsmeans treat/ pdiff;
run;
or
proc mixed data=mydata_long;
class treat mouse part;
model response =treat mouse part treat*part;
repeated part /type =cs subject=mouse;
lsmeans treat part /pdiff;
run;
But i am not sure the code above correct. Any suggestions are
appreciated!
Johson Chang