R/metaCcaPlusGp.R

Defines functions metaCcaPlusGp

Documented in metaCcaPlusGp

# This function performs genotype-phenotype association analysis according
# to metaCCA+ algorithm.


metaCcaPlusGp <- function(nr_studies, S_XY, std_info, S_YY, N, analysis_type, SNP_id, S_XX){

    if ( identical( class(nr_studies), "numeric" ) == FALSE ){
        stop('The first argument (number of studies analysed) needs to be
             numerical. ')
    }

    nr_studies = c( nr_studies, "plus_mode" )

    result  =  metaCcaGp( nr_studies, S_XY, std_info, S_YY, N, analysis_type, SNP_id, S_XX )


    return( result )
}

Try the metaCCA package in your browser

Any scripts or data that you put into this service are public.

metaCCA documentation built on Nov. 8, 2020, 10:58 p.m.