createInformativeComponents {LoBrA}R Documentation

Simulate informative peaks

Description

This function simulates signals correlated to different informative events.

Usage

createInformativeComponents(
  components,
  samples,
  labels,
  timepoints = c(5, 5, 5),
  bg = 3,
  mean = 5,
  sd = 3,
  segment = 1,
  slopeSD = 2,
  randomnoise = 0.5,
  plotting = FALSE
)

Arguments

components

number of background components to be created

samples

number of experiments

labels

label of each experiment

timepoints

number of sample measurements

bg

number of background measurements

mean

mean value of noise for the intercept of this components

sd

standard deviation value of noise for the intercept of this component

segment

indicating the segment, that will have an informative event (changing slope for one class)

slopeSD

standard deviation value for the generated slope of for this component (mean is zero, therefore, the slope can be either negative or positive)

randomnoise

random variation changing at each time point

plotting

logical value, (default is FALSE), if TRUE the function will plot the created time series.

Value

matrix of informative components


[Package LoBrA version 1.0 Index]