[R] Hiding "Warning messages" in coxme output

Mohammad Ehsanul Karim wildscop at yahoo.com
Fri Apr 20 17:44:42 CEST 2007


Dear list,

I have been trying to use coxme in R 2.3.1.
When I use coxme in the following data sim.fr1, i get 
"Warning messages: using 'as.environment(NULL)' is
deprecated"

Why does it occur? 

How can I hide such warning message, 
especially when coxme is under a loop?

Mohammad Ehsanul Karim (Institute of Statistical
Research and Training, University of Dhaka)

> fit.me1<-coxme(Surv(times,censored) ~
var1+var2+var3+var4+var5+var6, data=sim.fr1, random=
~1|id)

Warning messages:
1: using 'as.environment(NULL)' is deprecated 
2: using 'as.environment(NULL)' is deprecated 
3: using 'as.environment(NULL)' is deprecated

> sim.fr1
   id     var1     var2     var3
1   4 50.04399 239.8418 56.00348
2   2 40.75726 214.1387 61.95184
3   2 48.58170 225.4939 49.14774
4   1 68.02430 196.4890 55.83904
5   1 53.18038 219.8787 53.26361
6   1 60.42044 232.9754 47.49109
7   3 52.46432 212.7600 40.91770
8   1 57.45639 224.0846 51.53311
9   5 52.06026 183.2561 45.23863
10  3 65.61341 236.3037 57.44500
11  3 44.76174 202.1090 57.28233
12  4 46.84952 269.7694 53.07128
13  3 64.32224 174.5415 49.59961
14  2 56.43505 202.7242 42.82385
15  2 54.60324 229.3141 52.37811
16  3 59.79979 223.4841 47.89820
17  1 70.27831 201.5328 50.13637
18  1 60.60456 252.3765 54.89354
19  1 54.19388 205.0361 47.90004
20  3 47.20526 215.2096 45.88214
21  2 66.63391 262.5909 47.07526
22  5 35.59189 207.1023 47.88421
23  4 47.90704 255.9449 44.68653
24  1 38.67878 226.9713 44.69175
25  1 58.38346 194.3363 52.31043
26  2 55.56699 188.0691 47.11112
27  3 60.14032 223.7305 43.05751
28  4 47.86896 216.3541 43.72464
29  4 60.68309 214.9878 46.29433
30  3 51.09243 225.0828 56.85092
31  2 53.60470 266.2956 41.77462
32  2 59.01639 239.9694 57.52918
33  4 45.69305 178.3362 56.72676
34  5 47.64128 217.0027 46.55197
35  4 67.95317 245.0579 43.73846
36  3 47.23630 247.1667 48.90833
37  5 69.60160 218.0039 47.88746
38  4 67.91754 225.0661 47.69852
39  2 57.73782 176.2204 52.55087
40  5 47.00849 247.6134 49.36938
41  4 73.32817 171.4144 54.24920
42  1 60.49102 261.6575 52.54041
43  5 61.09394 208.2990 49.63053
44  4 58.68786 196.3652 40.75177
45  2 71.02560 216.8412 47.30145
46  5 53.48662 229.7460 54.09643
47  5 48.88694 190.6449 46.87681
48  5 62.71642 251.0692 34.96885
49  3 74.22934 256.0549 56.12771
50  5 58.75543 247.3048 53.20891
       var4 var5 var6        times
1  141.8141    1    0 0.0088438147
2  134.9364    1    0 0.0088438147
3  148.7873    0    0 0.0088438147
4  141.6457    1    0 0.0088438147
5  129.0089    0    0 0.0088438147
6  148.4601    1    0 0.0085473350
7  136.8948    1    0 0.0080652111
8  151.7048    1    1 0.0074827612
9  141.4720    0    0 0.0065128176
10 139.4224    0    0 0.0060424132
11 151.0035    1    0 0.0052687628
12 148.9482    0    0 0.0052599672
13 129.2505    1    0 0.0045640074
14 148.3178    0    0 0.0044079121
15 136.7365    0    0 0.0043426240
16 140.9471    1    0 0.0043169195
17 161.5255    1    0 0.0036934807
18 144.5947    0    0 0.0035073027
19 132.7104    1    1 0.0030682908
20 142.7094    1    1 0.0029271986
21 145.3469    1    0 0.0028454803
22 136.0977    0    0 0.0027955814
23 147.9991    0    1 0.0023559577
24 137.6689    1    0 0.0022944927
25 143.8760    0    0 0.0021630910
26 138.5741    1    1 0.0021491140
27 136.9094    1    1 0.0020458238
28 144.5598    1    0 0.0019319740
29 140.1745    1    0 0.0018676570
30 138.0642    0    0 0.0015548233
31 144.8542    0    0 0.0014358009
32 144.7343    1    1 0.0013238184
33 141.0691    1    1 0.0012197567
34 135.2025    0    1 0.0011901152
35 148.0699    0    0 0.0011596276
36 144.6939    0    0 0.0010145029
37 149.5679    0    0 0.0008390243
38 139.2625    1    0 0.0007960708
39 140.1564    0    0 0.0007257659
40 148.4176    1    0 0.0007173467
41 140.1095    1    1 0.0006009356
42 147.3081    1    0 0.0005399407
43 142.1086    1    1 0.0005150721
44 148.8549    1    1 0.0004632902
45 143.5331    0    0 0.0003720645
46 153.2280    1    0 0.0003566726
47 138.3347    0    1 0.0002300687
48 141.0115    1    0 0.0001998501
49 137.9199    1    0 0.0001416588
50 141.9770    0    1 0.0001021952
   censored   Frailty
1         0 0.8476022
2         0 0.8935796
3         0 0.8935796
4         0 0.0432273
5         0 0.0432273
6         1 0.0432273
7         1 0.4839272
8         1 0.0432273
9         1 2.0667992
10        1 0.4839272
11        1 0.4839272
12        1 0.8476022
13        1 0.4839272
14        1 0.8935796
15        1 0.8935796
16        1 0.4839272
17        1 0.0432273
18        1 0.0432273
19        1 0.0432273
20        1 0.4839272
21        1 0.8935796
22        1 2.0667992
23        1 0.8476022
24        1 0.0432273
25        1 0.0432273
26        1 0.8935796
27        1 0.4839272
28        1 0.8476022
29        1 0.8476022
30        1 0.4839272
31        1 0.8935796
32        1 0.8935796
33        1 0.8476022
34        1 2.0667992
35        1 0.8476022
36        1 0.4839272
37        1 2.0667992
38        1 0.8476022
39        1 0.8935796
40        1 2.0667992
41        1 0.8476022
42        1 0.0432273
43        1 2.0667992
44        1 0.8476022
45        1 0.8935796
46        1 2.0667992
47        1 2.0667992
48        1 2.0667992
49        1 0.4839272
50        1 2.0667992



More information about the R-help mailing list