flatten_predictors: Flattens predictor variable data into one row per person

Description Usage Arguments Value

View source: R/SplineTree.R

Description

Assumes that splitting explanatory variables do not vary with time. Spline Tree is not meant to handle time-varying covariates.

Usage

1

Arguments

idvar

The string name of the ID variable (used to group observations)

data

The full dataset to be flattened (long form)

Value

A wide format dataset with spline coefficients as the responses.


anna-neufeld/splinetree documentation built on Aug. 27, 2019, 9:39 p.m.