Learn R Programming

ashr (version 2.2-63)

set_data: Takes raw data and sets up data object for use by ash

Description

Takes raw data and sets up data object for use by ash

Usage

set_data(betahat, sebetahat, lik = NULL, alpha = 0)

Value

data object (list)

Arguments

betahat

vector of betahats

sebetahat

vector of standard errors

lik

a likelihood (see e.g., lik_normal())

alpha

specifies value of alpha to use (model is for betahat/sebetahat^alpha | sebetahat)

Details

The data object stores both the data, and details of the model to be used for the data. For example, in the generalized version of ash the cdf and pdf of the likelihood are stored here.