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.


splinetree documentation built on July 18, 2019, 9:08 a.m.