cyclic_fit: Run Cyclic model

Description Usage Arguments Value

View source: R/model_run.R

Description

This is where you describe the function itself contains the rownames and the subsequent columns are the sample identifiers. Any rows with duplicated row names will be dropped with the first one being

Usage

1
2
3
4
5
6
7
8
cyclic_fit(
  spi_input,
  n_chains = 1,
  iter = 1000,
  cores = 1,
  engine = "sample",
  output_dir = getwd()
)

Arguments

engine

options are sample (full MCMC), variational (variational approximation of posterior), optimize (Stan's LBFGS algorithm),

data

Dataframe with the underlying data. Columns must include variable names

spline_type

List of spline types. Either cc or cr are accepted. Names must agree with knot_loc

knot_loc

List of knot locations

Value

A matrix of the infile


staggelab/spibayes documentation built on Nov. 17, 2020, 8:19 a.m.