compare_fits2: Compare the fit of two qpgraph models

Description Usage Arguments Examples

Description

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

Usage

1
compare_fits2(fits1, fits2, boot = FALSE)

Arguments

fits1

The fits of the first graph

fits2

The fits of the second graph

boot

should match the boot parameter in qpgraph_resample_snps (FALSE by default)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
nblocks = dim(example_f2_blocks)[3]
train = sample(1:nblocks, round(nblocks/2))
fits1 = qpgraph_resample_snps(example_f2_blocks[,,train], graph = graph1,
                              f2_blocks_test = example_f2_blocks[,,-train])
fits2 = qpgraph_resample_snps(example_f2_blocks[,,train], graph = graph2,
                              f2_blocks_test = example_f2_blocks[,,-train])
compare_fits2(fit1, fit2)

## End(Not run)

uqrmaie1/admixtools documentation built on Sept. 16, 2020, 5:55 a.m.