Using a small sample data set displayed at the bottom, I get the following error:
> dbuf <- ei(cbind(Choice.1, Choice.2, Choice.3, Choice.4) ~ cbind (Hi.Ed, Lo.Ed), total = "Pop", data = Big10, erho = 1)
[1] "Running eiRxC"
Warning messages:
1: In BayesMDei(formula, data, total = total, lambda1 = lambda1, lambda2 = lambda2, :
column marginals are proportions - multiplying by unit size
2: In BayesMDei(formula, data, total = total, lambda1 = lambda1, lambda2 = lambda2, :
row margnials are proportions - multiplying by unit size
> summary(dbuf)
Error in array(x, c(length(x), 1L), if (!is.null(names(x))) list(names(x), :
'data' must be of a vector type, was 'NULL'
Choice.1 through Lo.Ed are of type “double.” Pop is “integer.” Any clue what the problem is?
Thanks in advance,
Bill
Choice.1
Choice.2
Choice.3
Choice.4
Hi.Ed
Lo.Ed
Pop
1
0.3960557
0.12370783
0.03217493
0.4480615
0.8442948
0.1557052
6222266
2
0.3356513
0.21803941
0.04251478
0.4037946
0.7541880
0.2458120
2191191
3
0.3035858
0.25241441
0.04002214
0.4039776
0.7643341
0.2356659
2009188
4
0.2598502
0.23172176
0.03091056
0.4775175
0.7086558
0.2913442
1438117
5
0.2604717
0.20728731
0.03202850
0.5002125
0.6786428
0.3213572
1308522
6
0.4288244
0.12137359
0.03955583
0.4102462
0.7334543
0.2665457
1193225
7
0.4811792
0.08965016
0.04065763
0.3885130
0.8305589
0.1694411
1069959
8
0.3296191
0.19188244
0.04399802
0.4345004
0.7813900
0.2186100
989090
9
0.4292554
0.15589339
0.04158555
0.3732657
0.8167544
0.1832456
743816
10
0.5334055
0.05825534
0.03558262
0.3727566
0.7925295
0.2074705
646945
Sent from Mail for Windows 10