predict_clust: Creates a character string expression to calculate the...

Description Usage Arguments Details Value Note

Description

Given the covariates and the name of the coefficients corresponding to a given cluster, the function construct a character string, which will be used to calculate the predicted values.

Usage

1
  predict_clust(cov, nomCoef, nom_model)

Arguments

cov

Name of the covariates.

nomCoef

Name of the coefficients.

nom_model

Name of the glm model.

Details

To calculate the predicted values in each cluster, we need the values of the covariates in the data and the right coefficients in the 'glm' object. To do this we construct an expression which will be evaluated inside glmClust.

Value

A character string of the expression of the predicted values of a given cluster.

Note

Meant to be used internally.


kmlcov documentation built on May 2, 2019, 11:38 a.m.