我一直在寻找一些适用于后验概率的功能。我想为每个组件进行分配,但是我不知道如何。首先,如何为列表中的每个组件创建向量?
以下信息显示了概率:
>dput(head(out.3.1$posterior))
>structure(c(0.0563823895419722, 0.0257300157960745, 0.0000000000000000180397428035783,
0.0253978781532002, 0.000000000000000007586528108014, 0.0000000000000000064152619636675,
0.609445398048216, 0.417193791818801, 0.0731264720737992, 0.411808417688033,
0.314143467477256, 0.405535515667362, 0.334172212409812, 0.557076192385124,
0.926873527926201, 0.562793704158767, 0.685856532522744, 0.594464484332638
), .Dim = c(6L, 3L), .Dimnames = list(NULL, c("comp.1", "comp.2",
"comp.3")))
希望你能帮助我!