compare_fits4 | R Documentation |
Takes two data frames with model fits computed on two graphs for on the same populations and tests whether the scores of one graph are significantly better than the scores of the other.
compare_fits4(fit1, fit2, f2_blocks, f2_blocks_test, boot = FALSE, seed = NULL)
fit1 |
The fit of the first graph |
fit2 |
The fit of the second graph |
f2_blocks |
f2 blocks used for fitting |
f2_blocks_test |
f2 blocks which were not used for fitting |
boot |
If |
seed |
Random seed used if |
## Not run:
nblocks = dim(example_f2_blocks)[3]
train = sample(1:nblocks, round(nblocks/2))
fit1 = qpgraph(example_f2_blocks[,,train], graph1)
fit2 = qpgraph(example_f2_blocks[,,train], graph2)
compare_fits4(fit1, fit2, example_f2_blocks[,,train], example_f2_blocks[,,-train])
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.