nongeno | R Documentation |
Creates an object of class nongeno containing a non-genotype design matrix, the type of kernel to generate, and the weights to be used to create the kernel matrix. This function is used to simplify the input structure of the call to KITdesign.
nongeno(mat, kernel = "linear", weights = NULL)
mat |
Design matrix. Missing values must be coded as NA. |
kernel |
Type of kernel. Must be one of 'interactive', 'linear', 'quadratic'. For linear kernel, the constant is taken to be zero; for quadratic kernel, it is one. |
weights |
Weights, if any, to be used in generating kernel. Object can be a vector or matrix. If vector, weights is converted to a diagonal matrix. |
Returns an object of class nongeno containing the design matrix, the weights to be used in generating the kernel, and the type of kernel to be generated.
Shannon T. Holloway
geno
, KITdesign
ngdata <- matrix(rnorm(40),ncol=4L) nongeno(mat = ngdata, kernel = "linear", weights = NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.