Learn R Programming

UNDER DEVELOPMENT

A R package that fit regression mixture model - group-based trajectory modeling (GBTM).

Longitudinal studies are often employed on several disciplines like finance, econometrics, psychology, sociology, biology, ...

The aims of this package is to give tools to work with this situation. On the one hand by divide data in some clusters and on the other hand by fitting longitudinal trajectories in each clusters.

Package Functionality

TrajeR support several distributions

  • Censored (or regular) Normal distribution ;
  • Zero Inflated Poisson distribution ;
  • Poisson ditribution ;
  • Bernouilli distribution ;
  • Beta distribution (only withe Likelihood) ;
  • Non linear regression.

The trajectories of each clusters are modeling by polynomials. We have the possibility to use Non Linear models too.

Installation

To get the current released version from CRAN:

# Comming soon

To get the current development version from Github:

## install dev version of trajeR from github
devtools::install_github("gitedric/trajeR")

## load trajeR package
library(trajeR)

Usage

The main function of the package is

trajeR(Y, A, X = NULL, TCOV = NULL, ng, degre, degre.nu = 0, 
       Model, Method = "L", 
       ssigma = FALSE, ymax = max(Y) + 1, ymin = min(Y) - 1,
       hessian = TRUE, itermax = 100, paraminit = NULL, 
       EMIRLS = TRUE, refgr = 1,
       fct = NULL, diffct = NULL, nbvar = NULL, nls.lmiter)

For more details about the usage of this package you can read the vignette documentation (coming soon).

Contact

Cédric NOEL

cedric.noel@univ-lorraine.fr

Copy Link

Version

Install

install.packages('trajeR')

Monthly Downloads

58

Version

0.9.0.5

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Last Published

February 21st, 2022

Functions in trajeR (0.9.0.5)

plotrajeR.Trajectory.POIS

plot POIS trajectory
plotrajeR.Trajectory.NL

plot Non Linear trajectory
GroupProb

Membership's probabilities
GroupProfiles

Profiles of each group
print.Trajectory.POIS

Print POIS
print.Trajectory.NL

print NL trajectory
print.Trajectory.BETA

Print BETA
trajeR.LOGIT

Internal function to fit LOGIT Model
plotrajeR.Trajectory.ZIP

plot ZIP trajectory
trajeR.NL

Internal function to fit Non Linear Model
trajeR.CNORM

Internal function to fit CNORM Model
trajeR.BETA

Internal function to fit Beta regression
trajeR

Fitting longitudinal mixture models
trajeR.POIS

Internal function to fit poisson Model
AvePP

Average Posterior Probability
ConfIntT

Confidence interval
trajeRBIC

BIC function to an trajectory object
plotrajeR.Trajectory.LOGIT

plot LOGIT trajectory
plotrajeR.Trajectory.CNORM

plot CNORM trajectory
trajeR.ZIP

Internal function to fit ZIP Model
trajeRSH

SH function to an trajectory object
print.Trajectory.CNORM

Print CNORM
adequacy

Adequacy of the model
OCC

Odds of Correct Classification
print.Trajectory.LOGIT

Print LOGIT
print.Trajectory.ZIP

Print ZIP
propAssign

Assignment proportion
trajeRAIC

AIC function to an trajectory object
plotrajeR.Trajectory.BETA

plot BETA trajectory
fait

Function fait
plotrajeR

plot trajectory
diffaitbeta

Differential