para.est: Hyperparameters Estimation

Description Usage Arguments Value

Description

A function to estimate hyperparameters, i.e., the scale and location parameters of prior distributions (Gamma) of the variances of random replicates effect and random SNP effect, as well as the parameters of the prior distribution (Gaussian) of fixed gene effect.This function tried to fit Generalized Linear Mixed Model to the data of each gene by glmer function in lme4 and then filter out the genes with computational problems. The hyperparameter estimation is based on the genes without computational problems.

Usage

1

Arguments

data

The raw data, need to be in the exact format with the sample data provided by this package, more specifically, a data.frame with its first 3 variables indicating gene ID, gene number and SNP number within a specific gene respectively. The following 2*Rep (Rep is the number of biological replicates) columns in the data.frame contain count data and the order must be consistent with the sample data. More details would be found in help(mysample).

rep

The number of biological replicates at each SNP.

Value

A list contains the following:

para

the estimation of hyperparameters.

index

a vector contain index of genes without computational problems.

all

a data.frame contains detailed intermediate results such as the p_values and estimated FDRs of likelihood ratio tests, the estimates of variance components etc.


JingXieMIZZOU/BLMRM documentation built on May 29, 2019, 7:31 a.m.