mean_trend_design_mat {microbiomeDASim} | R Documentation

## Create Design Matrix for `mean_trend` function

### Description

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

### Usage

    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

[Package microbiomeDASim version 1.0.0 Index]