Contingency-test | R Documentation |
Performs an exact conditional contingency-table test. There are many other ways of doing this in R but this function replicates the functionality of earlier genepop code analysing a contingency table provided in a file with ad hoc format. See this section of the Genepop executable documentation for more information on the statistical methods.
struc( inputFile, settingsFile = "", dememorization = 10000, batches = 100, iterations = 5000, verbose = interactive() )
inputFile |
character: The path of the input file. This file should be in an ad hoc format |
settingsFile |
character: The path of the settings file |
dememorization |
integer: length of dememorization step of Markov chain algorithm |
batches |
integer: Number of batches |
iterations |
integer: Iterations per batch |
verbose |
logical: whether to print some information |
The path of the output file is returned invisibly.
locinfile <- genepopExample('structest.txt') struc(locinfile) if ( ! interactive()) clean_workdir(otherfiles='structest.txt')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.