buildBasisFunction: Builds Basis Fuction

Description Usage Arguments Details Value Author(s) Examples

Description

Builds basis function used to evaluate RNA concentrations.

Usage

1

Arguments

snm.obj

An object of class snm

Details

Builds the basis spline function used to evaluate RNA concentrations.

Value

Basis spline matrix.

Author(s)

Brig Mecham <brig.mecham@sagebase.org>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (snm.obj) 
{
  lower <- min(rowMeans(snm.obj$dat))
  upper <- max(rowMeans(snm.obj$dat))
  basisSplineFunction <- ns(seq(lower,upper,length=100), df = snm.obj$spline.dim, 
        Boundary.knots = c(lower - 1, upper + 1))
  }

Sage-Bionetworks/snm documentation built on May 9, 2019, 12:14 p.m.