intervalArea {MetaLonDA}R Documentation

Calculate Area Ratio (AR) of each feature's time interval

Description

Calculate Area Ratio (AR) of each feature's time interval

Usage

intervalArea(curve.fit.df)

Arguments

curve.fit.df

gss data object of the fitted spline

Value

returns the area ratio for all time intervals

References

Ahmed Metwally (ametwall@stanford.edu)

Examples

data(metalonda_test_data)
n.sample = 5
n.timepoints = 10
n.group= 2
Group = factor(c(rep(0,n.sample*n.timepoints), rep(1,n.sample*n.timepoints)))
Time = rep(rep(1:n.timepoints, times = n.sample), 2)
ID = factor(rep(1:(2*n.sample), each = n.timepoints))
points = seq(1, 10, length.out = 10)
aggregate.df = data.frame(Count = metalonda_test_data[1,], Time = Time, Group = Group, ID = ID)
model = curveFitting(df = aggregate.df, method= "nbinomial", points)
intervalArea(model)

[Package MetaLonDA version 1.1.8 Index]