mean_trend_design_mat: Create Design Matrix for 'mean_trend' function

Description Usage Arguments Value

View source: R/mean_trend.R

Description

By taking in the user specified parameters, we can return a design matrix to use when creating the differential longitudinal abundance.

Usage

1
mean_trend_design_mat(form, beta, IP, timepoints)

Arguments

form

character value specifying the type of time trend. Options include 'linear', 'quadratic', 'cubic', 'M', 'W', 'L_up', and 'L_down'.

beta

vector specifying the appropriate parameters for functional trend. See details of mean_trend for explanation for each form

IP

vector specifying the inflection points. See details of mean_trend for explanation for each form

timepoints

numeric vector specifying the points to fit the functional trend.

Value

Numeric matrix with values that will be used to generate functional trends


microbiomeDASim documentation built on Nov. 8, 2020, 10:58 p.m.