ssFit: smoothing-splines anova fit

View source: R/fitTimeSeries.R

ssFitR Documentation

smoothing-splines anova fit

Description

Sets up a data-frame with the feature abundance, class information, time points, sample ids and returns the fitted values for the fitted model.

Usage

ssFit(
  formula,
  abundance,
  class,
  time,
  id,
  include = c("class", "time:class"),
  pd,
  ...
)

Arguments

formula

Formula for ssanova. Of the form: abundance ~ ... where ... includes any pData slot value.

abundance

Numeric vector of abundances.

class

Class membership (factor of group membership).

time

Time point vector of relative times (same length as abundance).

id

Sample / patient id.

include

Parameters to include in prediction.

pd

Extra variable.

...

Extra parameters for ssanova function (see ?ssanova).

Value

A list containing:

  • data : Inputed data

  • fit : The interpolated / fitted values for timePoints

  • se : The standard error for CI intervals

  • timePoints : The time points interpolated over

See Also

cumNorm fitTimeSeries ssPermAnalysis ssPerm ssIntervalCandidate

Examples


# Not run


HCBravoLab/metagenomeSeq documentation built on March 17, 2024, 3:21 p.m.