CheckDataForTextTree: 'CheckDataForTextTree' Check that there are enough cases to...

View source: R/texttree.R

CheckDataForTextTreeR Documentation

CheckDataForTextTree Check that there are enough cases to compute the tree from the term document matrix.

Description

CheckDataForTextTree Check that there are enough cases to compute the tree from the term document matrix.

Usage

CheckDataForTextTree(
  data,
  weights = NULL,
  subset = NULL,
  missing = "Exclude cases with missing data"
)

Arguments

data

A data frame where the first column is the outcome variable and the subsequent columns are terms from the term document matrix.

weights

An option vector containing sampling weights for each row of data.

subset

An option vector describing the subset of rows from data that are to be used to generate the tree.

missing

How missing data is to be treated in the regression. Options are: "Error if missing data", "Exclude cases with missing data", "Use partial data",and "Imputation (replace missing values with estimates)".


Displayr/flipTrees documentation built on Feb. 26, 2024, 12:46 a.m.