~ubuntu-branches/ubuntu/breezy/lme4/breezy

« back to all changes in this revision

Viewing changes to tests/Hsb82.Rout.save

  • Committer: Bazaar Package Importer
  • Author(s): Douglas Bates
  • Date: 2005-05-20 09:30:11 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20050520093011-vp8clxugp8hbjejp
Tags: 0.95.8-1
* New upstream release
* Upstream release no longer requires r-cran-latticeextra. Closes: Bug#307497 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
R : Copyright 2004, The R Foundation for Statistical Computing
3
 
Version 2.0.1  (2004-11-15), ISBN 3-900051-07-0
4
 
 
5
 
R is free software and comes with ABSOLUTELY NO WARRANTY.
6
 
You are welcome to redistribute it under certain conditions.
7
 
Type 'license()' or 'licence()' for distribution details.
8
 
 
9
 
R is a collaborative project with many contributors.
10
 
Type 'contributors()' for more information and
11
 
'citation()' on how to cite R or R packages in publications.
12
 
 
13
 
Type 'demo()' for some demos, 'help()' for on-line help, or
14
 
'help.start()' for a HTML browser interface to help.
15
 
Type 'q()' to quit R.
16
 
 
17
 
> library(lme4)
18
 
Loading required package: Matrix 
19
 
Loading required package: latticeExtra 
20
 
> lme(mAch ~ meanses*cses + sector*cses,
21
 
+     data = Hsb82, random = ~ cses|school)
22
 
Linear mixed-effects model
23
 
Fixed: mAch ~ meanses * cses + sector * cses 
24
 
 Data: Hsb82 
25
 
 log-restricted-likelihood:  -23251.83 
26
 
Random effects:
27
 
 Groups   Name        Variance Std.Dev. Corr  
28
 
 school   (Intercept)  2.37874 1.54232        
29
 
          cses         0.10235 0.31992  0.389 
30
 
 Residual             36.72091 6.05978        
31
 
# of obs: 7185, groups: school, 160
32
 
 
33
 
Fixed effects:
34
 
                      Estimate Std. Error   DF t value  Pr(>|t|)
35
 
(Intercept)           12.12793    0.19926 7179 60.8636 < 2.2e-16
36
 
meanses                5.33286    0.36912 7179 14.4477 < 2.2e-16
37
 
cses                   2.94503    0.15565 7179 18.9210 < 2.2e-16
38
 
sectorCatholic         1.22658    0.30623 7179  4.0054 6.253e-05
39
 
meanses:cses           1.03913    0.29898 7179  3.4755 0.0005128
40
 
cses:sectorCatholic   -1.64264    0.23985 7179 -6.8485 8.079e-12
41
 
> show(lme1(mAch ~ meanses*cses + sector*cses,
42
 
+           data = Hsb82, random = ~ cses|school))
43
 
Random effects:
44
 
 Groups   Name        Variance Std.Dev. Corr  
45
 
 school   (Intercept)  2.37874 1.54232        
46
 
          cses         0.10235 0.31992  0.389 
47
 
 Residual             36.72091 6.05978        
48
 
# of obs: 7185, groups: school, 160
49
 
 
50
 
Fixed effects:
51
 
                      Estimate Std. Error   DF t value  Pr(>|t|)    
52
 
(Intercept)           12.12793    0.19926 7179 60.8636 < 2.2e-16 ***
53
 
meanses                5.33286    0.36912 7179 14.4477 < 2.2e-16 ***
54
 
cses                   2.94503    0.15565 7179 18.9210 < 2.2e-16 ***
55
 
sectorCatholic         1.22658    0.30623 7179  4.0054 6.253e-05 ***
56
 
meanses:cses           1.03913    0.29898 7179  3.4755 0.0005128 ***
57
 
cses:sectorCatholic   -1.64264    0.23985 7179 -6.8485 8.079e-12 ***
58
 
---
59
 
Signif. codes:  0 `***' 0.001 `**' 0.01 `*' 0.05 `.' 0.1 ` ' 1 
60
 
> q("no")