update_f: Function for updating f

View source: R/update_f.R

update_fR Documentation

Function for updating f

Description

Function for updating f

Usage

update_f(
  probs,
  tuning_param = 50,
  method,
  spline_df,
  outcome,
  nn = nn,
  quality_var,
  tt = tt
)

Arguments

probs

outcomes p; probability between 0 and 1

tuning_param

tuning parameter. default set to 50

method

method for updating f. Can specify either isotone or splines. default splines.

spline_df

degrees of freedom for splines. default 3.

outcome

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

nn

length of outcome vector

quality_var

length-n vector; this is the quality variable vector, currently p = 1

tt

E-M iteration

Value

vector of estimated f's


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