getSumForPArea {refineR}R Documentation

Helper function to calculate the amount of observed and estimated data points within specified regions around the peak.

Description

The function helps to define the search region for P (fraction of non-pathological samples).

Usage

getSumForPArea(
  pLimitMin,
  pLimitMax,
  countsPred,
  HistData,
  lambda,
  mu,
  sigma,
  pCorr
)

Arguments

pLimitMin

(numeric) vector specifying the lower limits for the regions next to the peak

pLimitMax

(numeric) vector specifying the upper limits for the regions next to the peak

countsPred

(numeric) vector with the predicted counts

HistData

(list) with histogram data generated by function generateHistData

lambda

(numeric) transformation parameter for inverse Box-Cox transformation

mu

(numeric) parameter of the mean of non-pathological distribution

sigma

(numeric) parameter of the standard deviation of non-pathological distribution

pCorr

(numeric) correcting the cumulative probability of the truncated non-pathological distribution

Value

(list) with two numeric vectors specifying the amount of observed and estimated data points surrounding the peak

Author(s)

Tatjana Ammer tatjana.ammer@roche.com


[Package refineR version 1.6.1 Index]