calculate_p: Calculating p function

View source: R/calculate_p.R

calculate_pR Documentation

Calculating p function

Description

Calculating p function

Usage

calculate_p(xbeta, ff, epsilon, outcome)

Arguments

xbeta

my fitted betas matrix multiplied by covariate

ff

my estimated f's

epsilon

probability of observing a gene when it should be absent; probability between 0 and 1

outcome

length-n vector; this is the vector of a target gene's presence/absence; should be coded as 0 or 1

Value

a vector of probabilities


statdivlab/happi documentation built on April 19, 2024, 2:04 a.m.