sse_null_decaying_decay: sum of the squared errors for null models

Description Usage Arguments Value Examples

View source: R/sse.R

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

1
2
3

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

1
2
3
4
5
6
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))

RNAdecay documentation built on Nov. 8, 2020, 5:52 p.m.