Running examples in 'CDM-Ex.R' failed
The error most likely occurred in:

> ### Name: gdm
> ### Title: General Diagnostic Model
> ### Aliases: gdm summary.gdm print.gdm plot.gdm
> ### Keywords: General diagnostic model summary print plot
> 
> ### ** Examples
> 
> #############################################################################
> # EXAMPLE 1: Fraction Dataset 1
> #      Unidimensional Models for dichotomous data
> #############################################################################
> 
> data(data.fraction1, package="CDM")
> dat <- data.fraction1$data
> theta.k <- seq( -6, 6, len=15 )   # discretized ability
> 
> #***
> # Model 1: Rasch model (normal distribution)
> mod1 <- CDM::gdm( dat, irtmodel="1PL", theta.k=theta.k, skillspace="normal",
+                centered.latent=TRUE)
......................................................................
Iteration 1     2018-10-22 15:02:16 
   Deviance=7550.9176
    Maximum item intercept parameter change= 0.514477  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0.102723  
......................................................................
Iteration 2     2018-10-22 15:02:16 
   Deviance=7272.7528 | Deviance change=278.164836
    Maximum item intercept parameter change= 0.252437  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0.05341  
......................................................................
Iteration 3     2018-10-22 15:02:16 
   Deviance=7195.4866 | Deviance change=77.266177
    Maximum item intercept parameter change= 0.180006  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0.024971  
......................................................................
Iteration 4     2018-10-22 15:02:16 
   Deviance=7167.968 | Deviance change=27.51857
    Maximum item intercept parameter change= 0.10956  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0.011354  
......................................................................
Iteration 5     2018-10-22 15:02:16 
   Deviance=7159.0277 | Deviance change=8.940313
    Maximum item intercept parameter change= 0.061093  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0.005074  
......................................................................
Iteration 6     2018-10-22 15:02:16 
   Deviance=7156.1449 | Deviance change=2.882845
    Maximum item intercept parameter change= 0.033209  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0.002277  
......................................................................
Iteration 7     2018-10-22 15:02:16 
   Deviance=7155.1336 | Deviance change=1.01133
    Maximum item intercept parameter change= 0.0187  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0.001034  
......................................................................
Iteration 8     2018-10-22 15:02:16 
   Deviance=7154.721 | Deviance change=0.412522
    Maximum item intercept parameter change= 0.011451  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0.000475  
......................................................................
Iteration 9     2018-10-22 15:02:16 
   Deviance=7154.5222 | Deviance change=0.198787
    Maximum item intercept parameter change= 0.007819  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0.000222  
......................................................................
Iteration 10     2018-10-22 15:02:16 
   Deviance=7154.4108 | Deviance change=0.111436
    Maximum item intercept parameter change= 0.005923  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0.000106  
......................................................................
Iteration 11     2018-10-22 15:02:16 
   Deviance=7154.3399 | Deviance change=0.070928
    Maximum item intercept parameter change= 0.004852  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 5.3e-05  
......................................................................
Iteration 12     2018-10-22 15:02:16 
   Deviance=7154.29 | Deviance change=0.049883
    Maximum item intercept parameter change= 0.004178  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 2.8e-05  
......................................................................
Iteration 13     2018-10-22 15:02:16 
   Deviance=7154.2523 | Deviance change=0.037698
    Maximum item intercept parameter change= 0.003714  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 1.6e-05  
......................................................................
Iteration 14     2018-10-22 15:02:16 
   Deviance=7154.2224 | Deviance change=0.029876
    Maximum item intercept parameter change= 0.003364  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 1.1e-05  
......................................................................
Iteration 15     2018-10-22 15:02:16 
   Deviance=7154.198 | Deviance change=0.024384
    Maximum item intercept parameter change= 0.003066  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 8e-06  
......................................................................
Iteration 16     2018-10-22 15:02:16 
   Deviance=7154.1778 | Deviance change=0.020254
    Maximum item intercept parameter change= 0.0028  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 6e-06  
......................................................................
Iteration 17     2018-10-22 15:02:16 
   Deviance=7154.1608 | Deviance change=0.017
    Maximum item intercept parameter change= 0.00256  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 5e-06  
......................................................................
Iteration 18     2018-10-22 15:02:16 
   Deviance=7154.1464 | Deviance change=0.014358
    Maximum item intercept parameter change= 0.002341  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 5e-06  
......................................................................
Iteration 19     2018-10-22 15:02:16 
   Deviance=7154.1343 | Deviance change=0.012176
    Maximum item intercept parameter change= 0.002141  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 4e-06  
......................................................................
Iteration 20     2018-10-22 15:02:16 
   Deviance=7154.1239 | Deviance change=0.010355
    Maximum item intercept parameter change= 0.001958  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 4e-06  
......................................................................
Iteration 21     2018-10-22 15:02:16 
   Deviance=7154.1151 | Deviance change=0.008825
    Maximum item intercept parameter change= 0.001791  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 4e-06  
......................................................................
Iteration 22     2018-10-22 15:02:16 
   Deviance=7154.1075 | Deviance change=0.007536
    Maximum item intercept parameter change= 0.001638  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 3e-06  
......................................................................
Iteration 23     2018-10-22 15:02:16 
   Deviance=7154.1011 | Deviance change=0.006446
    Maximum item intercept parameter change= 0.001499  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 3e-06  
......................................................................
Iteration 24     2018-10-22 15:02:16 
   Deviance=7154.0956 | Deviance change=0.005523
    Maximum item intercept parameter change= 0.001371  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 3e-06  
......................................................................
Iteration 25     2018-10-22 15:02:16 
   Deviance=7154.0908 | Deviance change=0.00474
    Maximum item intercept parameter change= 0.001254  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 3e-06  
......................................................................
Iteration 26     2018-10-22 15:02:16 
   Deviance=7154.0868 | Deviance change=0.004075
    Maximum item intercept parameter change= 0.001147  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 2e-06  
......................................................................
Iteration 27     2018-10-22 15:02:16 
   Deviance=7154.0832 | Deviance change=0.003509
    Maximum item intercept parameter change= 0.001049  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 2e-06  
......................................................................
Iteration 28     2018-10-22 15:02:16 
   Deviance=7154.0802 | Deviance change=0.003027
    Maximum item intercept parameter change= 0.00096  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 2e-06  
......................................................................
Iteration 29     2018-10-22 15:02:16 
   Deviance=7154.0776 | Deviance change=0.002617
    Maximum item intercept parameter change= 0.000878  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 2e-06  
......................................................................
Iteration 30     2018-10-22 15:02:16 
   Deviance=7154.0753 | Deviance change=0.002266
    Maximum item intercept parameter change= 0.000803  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 2e-06  
......................................................................
Iteration 31     2018-10-22 15:02:16 
   Deviance=7154.0734 | Deviance change=0.001966
    Maximum item intercept parameter change= 0.000734  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 1e-06  
......................................................................
Iteration 32     2018-10-22 15:02:16 
   Deviance=7154.0717 | Deviance change=0.001709
    Maximum item intercept parameter change= 0.000672  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 1e-06  
......................................................................
Iteration 33     2018-10-22 15:02:16 
   Deviance=7154.0702 | Deviance change=0.001488
    Maximum item intercept parameter change= 0.000615  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 1e-06  
......................................................................
Iteration 34     2018-10-22 15:02:16 
   Deviance=7154.0689 | Deviance change=0.001299
    Maximum item intercept parameter change= 0.000562  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 1e-06  
......................................................................
Iteration 35     2018-10-22 15:02:16 
   Deviance=7154.0677 | Deviance change=0.001136
    Maximum item intercept parameter change= 0.000514  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 1e-06  
......................................................................
Iteration 36     2018-10-22 15:02:16 
   Deviance=7154.0667 | Deviance change=0.000995
    Maximum item intercept parameter change= 0.00047  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 1e-06  
......................................................................
Iteration 37     2018-10-22 15:02:16 
   Deviance=7154.0659 | Deviance change=0.000874
    Maximum item intercept parameter change= 0.00043  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 1e-06  
......................................................................
Iteration 38     2018-10-22 15:02:16 
   Deviance=7154.0651 | Deviance change=0.000769
    Maximum item intercept parameter change= 0.000394  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 1e-06  
......................................................................
Iteration 39     2018-10-22 15:02:16 
   Deviance=7154.0644 | Deviance change=0.000677
    Maximum item intercept parameter change= 0.00036  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 1e-06  
......................................................................
Iteration 40     2018-10-22 15:02:16 
   Deviance=7154.0638 | Deviance change=0.000598
    Maximum item intercept parameter change= 0.000329  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 1e-06  
......................................................................
Iteration 41     2018-10-22 15:02:16 
   Deviance=7154.0633 | Deviance change=0.000529
    Maximum item intercept parameter change= 0.000301  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 1e-06  
......................................................................
Iteration 42     2018-10-22 15:02:16 
   Deviance=7154.0628 | Deviance change=0.000469
    Maximum item intercept parameter change= 0.000276  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 1e-06  
......................................................................
Iteration 43     2018-10-22 15:02:16 
   Deviance=7154.0624 | Deviance change=0.000417
    Maximum item intercept parameter change= 0.000252  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 1e-06  
......................................................................
Iteration 44     2018-10-22 15:02:16 
   Deviance=7154.062 | Deviance change=0.000371
    Maximum item intercept parameter change= 0.000231  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0  
......................................................................
Iteration 45     2018-10-22 15:02:16 
   Deviance=7154.0617 | Deviance change=0.00033
    Maximum item intercept parameter change= 0.000211  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0  
......................................................................
Iteration 46     2018-10-22 15:02:16 
   Deviance=7154.0614 | Deviance change=0.000295
    Maximum item intercept parameter change= 0.000193  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0  
......................................................................
Iteration 47     2018-10-22 15:02:16 
   Deviance=7154.0612 | Deviance change=0.000263
    Maximum item intercept parameter change= 0.000177  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0  
......................................................................
Iteration 48     2018-10-22 15:02:16 
   Deviance=7154.0609 | Deviance change=0.000236
    Maximum item intercept parameter change= 0.000161  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0  
......................................................................
Iteration 49     2018-10-22 15:02:16 
   Deviance=7154.0607 | Deviance change=0.000211
    Maximum item intercept parameter change= 0.000148  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0  
......................................................................
Iteration 50     2018-10-22 15:02:16 
   Deviance=7154.0605 | Deviance change=0.00019
    Maximum item intercept parameter change= 0.000135  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0  
......................................................................
Iteration 51     2018-10-22 15:02:16 
   Deviance=7154.0603 | Deviance change=0.000171
    Maximum item intercept parameter change= 0.000124  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0  
......................................................................
Iteration 52     2018-10-22 15:02:16 
   Deviance=7154.0602 | Deviance change=0.000153
    Maximum item intercept parameter change= 0.000113  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0  
......................................................................
Iteration 53     2018-10-22 15:02:16 
   Deviance=7154.0601 | Deviance change=0.000138
    Maximum item intercept parameter change= 0.000103  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0  
......................................................................
Iteration 54     2018-10-22 15:02:16 
   Deviance=7154.0599 | Deviance change=0.000125
    Maximum item intercept parameter change= 9.5e-05  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0  
......................................................................
Iteration 55     2018-10-22 15:02:16 
   Deviance=7154.0598 | Deviance change=0.000113
    Maximum item intercept parameter change= 8.7e-05  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0  
......................................................................
Iteration 56     2018-10-22 15:02:16 
   Deviance=7154.0597 | Deviance change=0.000102
    Maximum item intercept parameter change= 7.9e-05  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0  
......................................................................
Iteration 57     2018-10-22 15:02:16 
   Deviance=7154.0596 | Deviance change=9.2e-05
    Maximum item intercept parameter change= 7.2e-05  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0  
......................................................................
Iteration 58     2018-10-22 15:02:16 
   Deviance=7154.0595 | Deviance change=8.3e-05
    Maximum item intercept parameter change= 6.6e-05  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0  
......................................................................
Iteration 59     2018-10-22 15:02:16 
   Deviance=7154.0595 | Deviance change=7.6e-05
    Maximum item intercept parameter change= 6.1e-05  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0  
......................................................................
Iteration 60     2018-10-22 15:02:16 
   Deviance=7154.0594 | Deviance change=6.8e-05
    Maximum item intercept parameter change= 5.5e-05  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0  
......................................................................
Iteration 61     2018-10-22 15:02:16 
   Deviance=7154.0593 | Deviance change=6.2e-05
    Maximum item intercept parameter change= 5.1e-05  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0  
......................................................................
Iteration 62     2018-10-22 15:02:16 
   Deviance=7154.0593 | Deviance change=5.6e-05
    Maximum item intercept parameter change= 4.6e-05  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0  
......................................................................
Iteration 63     2018-10-22 15:02:16 
   Deviance=7154.0592 | Deviance change=5.1e-05
    Maximum item intercept parameter change= 4.2e-05  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0  
......................................................................
Iteration 64     2018-10-22 15:02:16 
   Deviance=7154.0592 | Deviance change=4.7e-05
    Maximum item intercept parameter change= 3.9e-05  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0  
......................................................................
Iteration 65     2018-10-22 15:02:16 
   Deviance=7154.0591 | Deviance change=4.2e-05
    Maximum item intercept parameter change= 3.6e-05  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0  
......................................................................
Iteration 66     2018-10-22 15:02:16 
   Deviance=7154.0591 | Deviance change=3.9e-05
    Maximum item intercept parameter change= 3.2e-05  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0  
......................................................................
Iteration 67     2018-10-22 15:02:16 
   Deviance=7154.0591 | Deviance change=3.5e-05
    Maximum item intercept parameter change= 3e-05  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0  
......................................................................
Iteration 68     2018-10-22 15:02:16 
   Deviance=7154.059 | Deviance change=3.2e-05
    Maximum item intercept parameter change= 2.7e-05  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0  
......................................................................
Iteration 69     2018-10-22 15:02:16 
   Deviance=7154.059 | Deviance change=2.9e-05
    Maximum item intercept parameter change= 2.5e-05  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0  
......................................................................
Iteration 70     2018-10-22 15:02:16 
   Deviance=7154.059 | Deviance change=2.7e-05
    Maximum item intercept parameter change= 2.3e-05  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0  
......................................................................
Iteration 71     2018-10-22 15:02:16 
   Deviance=7154.0589 | Deviance change=2.4e-05
    Maximum item intercept parameter change= 2.1e-05  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0  
......................................................................
Iteration 72     2018-10-22 15:02:16 
   Deviance=7154.0589 | Deviance change=2.2e-05
    Maximum item intercept parameter change= 1.9e-05  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0  
......................................................................
Iteration 73     2018-10-22 15:02:16 
   Deviance=7154.0589 | Deviance change=2e-05
    Maximum item intercept parameter change= 1.7e-05  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0  
......................................................................
Iteration 74     2018-10-22 15:02:16 
   Deviance=7154.0589 | Deviance change=1.8e-05
    Maximum item intercept parameter change= 1.6e-05  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0  
......................................................................
Iteration 75     2018-10-22 15:02:16 
   Deviance=7154.0589 | Deviance change=1.7e-05
    Maximum item intercept parameter change= 1.5e-05  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0  
......................................................................
Iteration 76     2018-10-22 15:02:16 
   Deviance=7154.0589 | Deviance change=1.5e-05
    Maximum item intercept parameter change= 1.3e-05  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0  
......................................................................
Iteration 77     2018-10-22 15:02:16 
   Deviance=7154.0588 | Deviance change=1.4e-05
    Maximum item intercept parameter change= 1.2e-05  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0  
......................................................................
Iteration 78     2018-10-22 15:02:16 
   Deviance=7154.0588 | Deviance change=1.3e-05
    Maximum item intercept parameter change= 1.1e-05  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0  
......................................................................
Iteration 79     2018-10-22 15:02:16 
   Deviance=7154.0588 | Deviance change=1.2e-05
    Maximum item intercept parameter change= 1e-05  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0  
......................................................................
Iteration 80     2018-10-22 15:02:16 
   Deviance=7154.0588 | Deviance change=1.1e-05
    Maximum item intercept parameter change= 9e-06  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0  
......................................................................
Iteration 81     2018-10-22 15:02:16 
   Deviance=7154.0588 | Deviance change=1e-05
    Maximum item intercept parameter change= 9e-06  
    Maximum item slope parameter change= 0  
    Maximum distribution parameter change= 0  
----------------------------------- 
Start: 2018-10-22 15:02:16 
End: 2018-10-22 15:02:16 
Time difference of 0.3119981 secs
Difference: 0.3119981 
----------------------------------- 
> summary(mod1)
-----------------------------------------------------------------------------
CDM 6.6-5 (2018-09-30 14:22:25) 

Date of Analysis: 2018-10-22 15:02:16 
Time difference of 0.3119981 secs
Computation Time: 0.3119981 

General Diagnostic Model 

    536 Cases,  15 Items,  1 Group(s) , 1 Dimension(s)
    Normal distribution assumption

-----------------------------------------------------------------------------
Number of iterations= 81

Deviance= 7154.06  | Log Likelihood= -3577.03 
Number of persons= 536 
Number of estimated parameters= 16 
  Number of estimated item parameters= 15 
       15 Intercepts and 0 Slopes 
       0 centered intercepts and 0 centered slopes 
  Number of estimated distribution parameters= 1 
AIC= 7186.06  | penalty= 32    | AIC=-2*LL + 2*p  
AICc= 7187.11  | penalty= 33.05    | AICc=-2*LL + 2*p + 2*p*(p+1)/(n-p-1)  (bias corrected AIC)
BIC= 7254.6  | penalty= 100.55    | BIC=-2*LL + log(n)*p  
CAIC= 7270.6  | penalty= 116.55   | CAIC=-2*LL + [log(n)+1]*p  (consistent AIC)

-----------------------------------------------------------------------------
Trait Distribution

M Trait:
       F1
Group1  0

SD Trait:
          F1
Group1 2.376

Skewness Trait:
       F1
Group1  0

Correlations Trait: 
Group 1 
   F1
F1  1

EAP Reliability:
        F1
[1,] 0.895
-----------------------------------------------------------------------------
Item Parameters 
   item   N     M b.Cat1 a.F1 itemfit.rmsea
1   T01 536 0.576  0.632    1         0.045
2   T02 536 0.528  0.244    1         0.142
3   T03 536 0.795  2.565    1         0.082
4   T04 536 0.399 -0.794    1         0.027
5   T05 536 0.647  1.211    1         0.236
6   T06 536 0.382 -0.933    1         0.078
7   T07 536 0.474 -0.188    1         0.106
8   T08 536 0.729  1.925    1         0.062
9   T09 536 0.722  1.857    1         0.087
10  T10 536 0.451 -0.368    1         0.037
11  T11 536 0.696  1.624    1         0.072
12  T12 536 0.433 -0.519    1         0.084
13  T13 536 0.468 -0.233    1         0.084
14  T14 536 0.310 -1.558    1         0.072
15  T15 536 0.392 -0.856    1         0.088

Mean of RMSEA item fit: 0.087 
> plot(mod1)
Error in `[<-.data.frame`(`*tmp*`, plotgrid[, 1] < plotgrid[, 2], "type",  : 
  replacement has 1 row, data has 0
Calls: plot -> plot.gdm -> [<- -> [<-.data.frame
Execution halted