addIndic: Create the new formula with the indicator covariates

Description Usage Arguments Details Value Note

Description

Write the new formula given the covariates with a level cluster effect, the number of clusters and the type parametric on time or not.

Usage

1
2
  addIndic(covar, nClust, parametric = TRUE, nomClust =
    'G')

Arguments

covar

A 'character' vector of covariates.

nClust

Number of clusters.

parametric

If [TRUE] it means we are parametric on time.

nomClust

The beginning of the name of the indicator covariates 'Ga, Gb, .., etc.

Details

Given the covariates and the number of clusters, it returns a character string which will be converted inside glmClust to a formula to represent the covariates with different cluster effect.

Value

A character string which will be used as a 'formula'.

Note

Meant to be used internally.



Search within the kmlcov package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.