Learn R Programming

kmlcov (version 1.0.1)

getNomCoef: Get the name of the coefficients in the 'glm' object according to the current cluster

Description

This function creates and return a vector containing the name of the coefficients associated to the current cluster.

Usage

getNomCoef(covar, cov_fix, nomClust, itrClust, parametric  = TRUE)

Arguments

covar
A vector of [character] indicating the covariates with a levec cluster effect.
cov_fix
A vector of [character] indicating the covariates with the same effect in each cluster.
nomClust
The beginning of the name of the undicator covariates, by default 'G[letters]'.
itrClust
The number of the current cluster.
parametric
By default [TRUE] for parametric on time.

Value

A vector of [character] giving the name of the coefficients associated to awith a given cluster.

Details

Given the name of the covariates and the number of the current cluster, it constructs a vector used to retrieve the coefficients from a 'glm' object, these coefficients are used to calculate the predicted values of the current cluster.