sse_null_decaying_decay {RNAdecay} | R Documentation

## sum of the squared errors for null models

### Description

For a model that uses a constant decay rate or a decaying decay rate, calculates the sum of the squared errors (differences between the supplied data points and the modeled values based on alpha and/or beta values). For these models all treatments are assumed to have the same `a` (alpha) and/or `b` (beta).

### Usage

    sse_null_decaying_decay(a, b, m, t)

    sse_null_const_decay(a, m, t)

### Arguments

`a` | alpha value
`b` | beta value
`m` | mRNA abundance values
`t` | time points of `m`

### Value

Returns the sum of the squared errors

### Examples

    sse_null_decaying_decay(a=0.05, b = 0.001,
               m = c(1,1,1,0.99,0.5,0.5,0.5,0.49,0.25,0.25,0.25,0.24,0.12,0.125,0.125,0.126),
               t = rep(c(0,10,20,30),each = 4))
    sse_null_const_decay(a=0.05,
               m = c(1,1,1,0.99,0.5,0.5,0.5,0.49,0.25,0.25,0.25,0.24,0.12,0.125,0.125,0.126),
               t = rep(c(0,10,20,30),each = 4))

[Package RNAdecay version 1.3.1 Index]