Description Usage Arguments Value References See Also Examples
View source: R/fourier.expansion.R
Calculate the fourier coefficients
1 | fourier.expansion(x, n_of_basis, pos)
|
x |
Input data matrix. Each row represents the observations of a single individual. Each column represents the variables. |
n_of_basis |
Number of basis function for Fourier expansion and it should be an odd number. |
pos |
The location or time information for each variables. |
The output is a list.
fbasis |
The basis function |
phi |
The phase of the basis function based on the location or time information |
coef |
The calculated Fourier Coefficients |
Lin N, Zhu Y, Fan R, Xiong M. A quadratically regularized functional canonical correlation analysis for identifying the global structure of pleiotropy with NGS data. PLOS Computational Biology. 2017;13(10):e1005788. doi: 10.1371/journal.pcbi.1005788.
1 2 3 4 5 | data(snp_data);
## Not run:
rlt = fourier.expansion(snp_data,n_of_basis=37,pos=as.numeric(colnames(snp_data));)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.