Skip to content
Prev 147579 / 398500 Next

Problems with lm()

In your data, subject is nested within sequence.  Was that your
intention?
+ 1939,1615,1475,1759,1388,1483,1127,1682,1542,1247,1235,1605,1598,1718
+ )
+ drug=as.factor(b), period=as.factor(c),
+ sequence=as.factor(d), Max=e)
subject drug period sequence  Max
1        1    1      2        2 1739
2        1    2      1        2 1633
3        2    1      1        1 1481
4        2    2      2        1 1837
5        3    1      2        2 1780
6        3    2      1        2 2073
7        4    1      1        1 1374
8        4    2      2        1 1629
9        5    1      2        2 1555
10       5    2      1        2 1385
11       6    1      1        1 1756
12       6    2      2        1 1522
13       7    1      2        2 1566
14       7    2      1        2 1643
15       8    1      1        1 1939
16       8    2      2        1 1615
17       9    1      2        2 1475
18       9    2      1        2 1759
19      10    1      1        1 1388
20      10    2      2        1 1483
21      11    1      2        2 1127
22      11    2      1        2 1682
23      12    1      1        1 1542
24      12    2      2        1 1247
25      13    1      2        2 1235
26      13    2      1        2 1605
27      14    1      1        1 1598
28      14    2      2        1 1718



Andrew
On Thu, Jun 19, 2008 at 04:29:16PM +0800, leeznar wrote: