Learn R Programming

cfda (version 0.12.1)

Categorical Functional Data Analysis

Description

Package for the analysis of categorical functional data. The main purpose is to compute an encoding (real functional variable) for each state . It also provides functions to perform basic statistical analysis on categorical functional data.

Copy Link

Version

Install

install.packages('cfda')

Monthly Downloads

268

Version

0.12.1

License

AGPL-3

Maintainer

Quentin Grimonprez

Last Published

January 24th, 2025

Functions in cfda (0.12.1)

hist.njump

Plot the number of jumps
estimate_Markov

Estimate transition matrix and spent time
plotData

Plot categorical functional data
hist.duration

Plot the duration
get_state

Extract the state of each individual at a given time
plot.Markov

Plot the transition graph
plot.fmca

Plot the optimal encoding
statetable

Table of transitions
remove_duplicated_states

Remove duplicated states
plotEigenvalues

Plot Eigenvalues
reconstructIndicators

Reconstruct the indicators using encoding
print.fmca

Print a fmca object
generate_2State

Generate data following a 2 states model
plot.pt

Plot probabilities
flours

Flours dataset
plotComponent

Plot Components
plotIndicatorsReconstruction

Plot reconstructed indicators
summary.fmca

Object Summaries
predict.fmca

Predict the principal components for new trajectories
summary_cfd

Summary
compute_duration

Compute duration of individuals
convertToCfd

Convert data to categorical functional data
care

Care trajectories
biofam2

Family life states from the Swiss Household Panel biographical survey
boxplot.timeSpent

Boxplot of time spent in each state
compute_time_spent

Compute time spent in each state
cut_data

Cut data to a maximal given time
compute_number_jumps

Compute the number of jumps
compute_optimal_encoding

Compute the optimal encoding for each state
cfda-package

Categorical Functional Data Analysis
generate_Markov

Generate Markov Trajectories
get_encoding

Extract the computed encoding
estimate_pt

Estimate probabilities to be in each state
matrixToCfd

Convert a matrix to a cfda data.frame