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

View source: R/set_data.R

set_dataR Documentation

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)

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.

Value

data object (list)


stephens999/ashr documentation built on May 16, 2024, 3:10 a.m.