Description Usage Arguments Details Value Author(s) See Also
This function checks if the data set is suitable for the analysis (type and format) and creates a new data frame including some internal variables.
1 |
data |
A data.frame in which each row represents an individual and columns are the variables
ocurring in the formula (response, SNPs information and covariates, see bayhapReg documentation for more details). All
columns must be non factors. Each SNP have to be a character string holding both alleles with the
separator specified by the argument |
col.snps |
A numerical vector indicating the position of each SNP in data. This is an optional parameter, instead of this the name of each SNP can be informed in |
snps.name |
A vector containing the names of each SNP in the data. This is an optional parameter, instead of this the column position of each SNP can be informed in |
sep |
Character separator to divide alleles. |
This function must be executed before running bayhapReg
. The resulting data.frame must be the object to pass to bayhapReg
as a data parameter. Original data must not contain any variable named haplotypes
because this is an specific word for this package.
A data.frame ready to be inserted in bayhapReg
.
Raquel Iniesta riniesta@pssjd.org
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.