Skip to contents

Wraps a specparam aperiodic parameter (by default the exponent) for one channel as a reliability-characterised PhysioBiomarker.

Usage

specparamBiomarker(
  result,
  channel = 1,
  param = c("exponent", "offset", "knee"),
  reliability = list(icc = NA_real_, sem = NA_real_)
)

Arguments

result

A specparam_result from specparam().

channel

Channel index or label (default: 1).

param

Which aperiodic parameter to export: "exponent", "offset", or "knee".

reliability

Named list of reliability indices to attach (default: icc and sem placeholders).

Value

A PhysioBiomarker.

Examples

if (FALSE) { # \dontrun{
sp <- specparam(make_pe_2d(n_time = 4000, sr = 250))
specparamBiomarker(sp, channel = 1)
} # }