create_algorithm: Creates an excel workbook with two worksheets. The first...

View source: R/create_algorithm.R

create_algorithmR Documentation

Creates an excel workbook with two worksheets. The first sheet contains the classification function coefficients from a model created using rsegmenter::lda. The second sheet contains the training data and excel formulae to assign the training data to a segment, using the classification function coefficients.

Description

Creates an excel workbook with two worksheets. The first sheet contains the classification function coefficients from a model created using rsegmenter::lda. The second sheet contains the training data and excel formulae to assign the training data to a segment, using the classification function coefficients.

Usage

create_algorithm(df, id, indeps, ldamodel)

Arguments

df

data.frame of numeric variables.

id

unique row identifier.

indeps

predictor variables.

ldamodel

lda model object.


PrenolanM/rsegmenter documentation built on Aug. 7, 2022, 8:56 p.m.