Learn R Programming

⚠️There's a newer version (1.1) of this package.Take me there.

genpathmox (version 0.6)

Generalized Pathmox Approach Segmentation Tree Analysis

Description

It provides an interesting solution for handling a high number of segmentation variables in partial least squares structural equation modeling. The package implements the "Pathmox" algorithm (Lamberti, Sanchez, and Aluja,(2016)) including the F-coefficient test (Lamberti, Sanchez, and Aluja,(2017)) to detect the path coefficients responsible for the identified differences), the hybrid multi-group approach (Lamberti (2021) ) and the classical multi-group approaches (parametric and permutation approaches). The package also includes an extension of the "Pathmox" algorithm to the case of linear regression models.

Copy Link

Version

Install

install.packages('genpathmox')

Monthly Downloads

241

Version

0.6

License

GPL-3

Maintainer

Giuseppe Lamberti

Last Published

February 17th, 2021

Functions in genpathmox (0.6)

all.part.pls

Defining the candidates to the optimum partition for each of segmentation variables
bin.levels

Defining labels of the binary partions.
all.part.reg

Defining the candidates to the optimum partition for each of segmentation variables (regression model)
check_maxiter

Check maximum number of iterations
blockdiag

Building the Bart matrix
Fg.test.reg

Global test for the regression model
Fg.test.pls

F-Global test.
check_scaling

Check types of measurement scales and metric
check_model

Check congruence between inner and outer models
fglobal.tree.pls

Listing the the f-global test results for each obtained partition
check_plscomp

Check vector of PLS components (for non-metric plspm)
comb

Enumerating the possible combinations of a specified size from the elements of a vector
check_tol

Check tolerance threshold
candidates.tree

Listing the candidates partions for each intermedied nodes
build.block

Defining the linear relations between the latent variables.
fcoef.tree.pls

Listing the the f-coefficients test results for each obtained partition
check_args

Check arguments for plspm and plspm.fit
check_blocks

Check well defined blocks
Fc.test.pls

Coefficient test
factor_to_dummy

Create a dummy matrix from the elements in a factor
F.data.pls

Defining the matrices needed for the comparison test
Fc.test.reg

Coefficient test for the regression model
F.data.reg

Defining the matrices needed for the comparison test (regression model)
fibtelereg

Fibtelereg
check_path

Check path matrix
dummy.G

Dummy by Giorgio
check_modes

Check modes
dummy_to_list

Create an indexed list from a dummy matrix
get_scores

Calculate Latent Variable Scores
get_rank

Rank of a non-metric variable
check_boot

Check bootstrap options
info.mox.pls

Giving general information about the pathmox algorithm
from_to

Starting and ending positions
funlist

Apply a function to all elements in a list
is_positive

Is positive
is_odd

Is even
is_one_dim

Test if an object has one-dimension
is_negative_integer

Is negative integer
info.mox.reg

Giving general information about the pathmox-lm algorithm
check_scheme

Check scheme
check_specs

Check specifications of PLS-PM algorithm
get_dummies

Dummy matrices for categorical manifest variables
get_boot_stats

Get data frame with bootstrap statistics
check_data

Check Data
get_numerics

Transform factors in MV into numeric
get_PLSR

Internal PLS regression (full data)
get_ord_scale

Calculate inner weighting path scheme
get_PLSR_NA

Internal PLS regression with missing values
get_dummy

Non-Metric Dummy
element

Defining labels of a path coefficient.
get_nom_scale

Non-Metric Nominal Scale
csibank

CSIbank
df_to_blocks

Split a data frame into blocks
is_single_positive_integer

Is single positive integer
f.min

Defining vector minimum position
get_weights_nonmetric

Outer Weights Non-Metric Data
fcoef.tree.reg

Listing the the f-coefficients test results for regression model for each obtained partition
get_weights

Outer Weights
is_class

Is class
get_boots

Performs bootstrap validation in plspm
get_gof

Goodness-of-fit for plspm
get_inner_summary

Inner summary assessment
fglobal.tree

Listing the the f-global test results for regression model for each obtained partition
get_effects

Path coefficient effects for plspm
get_treated_data

Apply corresponding treatment to MV
get_path_scheme

Calculate inner weighting path scheme
get_generals

Get general parameters
get_manifests

Building data matrix with manifest variables
get_metric

Type of metric based on scaling measurement
get_paths

Calculate path coefficients for plspm
get_unidim

Unidimensionality of reflective blocks
is_missing

Presence of missing values
is_multidim

Test if an object is multi-dimensional
is_single_string

Is single string
info.pls-class

info.pls class
get_num_scale

Non-Metric Numerical Scale
is_dataframe

Is data frame
is_rectangular_matrix

Is rectangular matrix
has_missing

Has missing values, NA, NaN, Inf
has_dimension

Has dimension?
has_names

Has or lacks names?
is_decimal

Is decimal
is_single_logical

Is single logical
is_diagonal

Is diagonal matrix
is_multiple

Is multiple
has_factors

Has factors?
is_natural

Is natural
is_single_positive

Is single positive number
list_ones

List with vectors of ones
is_scalar

Is scalar
has_rownames

Has or lacks row/column names?
is_even

Is even
indexify

Create indices for elements in a vector or list
list_to_dummy

Create a dummy matrix from the elements in a list
is_square_numeric_matrix

Is square numeric matrix
is_single_negative

Is single negative number
is_single_positive_decimal

Is single positive decimal
is_string

Is string
is_single

Is single
root.tree

Calculating the element of the root node
same_class

Same Class
normalize

Normalize a vector
partition

Defining binary partitions given a segmentation variable (factor).
is_single_decimal

Is single decimal
matrix_to_blocks

Split a matrix into blocks
meanlist

Mean of all elements in a list
is_integer

Is integer
maxlist

Maximum of all elements in a list
minlist

Minimum of all elements in a list
list_of_vectors

List of vectors
is_lower_triangular

Is triangular matrix
is_single_even

Is single even
is_matrix

Is matrix
list_to_matrix

Design-type matrix from the elements in a list
plspm

PLS-PM: Partial Least Squares Path Modeling
lengths

Length of each element within a list
summary.xtree.reg

Summary function for the Pathmox Segmentation Trees: linaer regression and LAD
terminal.tree

Calculating the element of the terminal nodes
printTree

printing the tree structure
treemodel

create method treemodel
is_single_number

Is single number
is_single_odd

Is single odd
is_vector

Is vector
is_tabular

Is tabular
info.reg_class

info.reg class
is_negative

Is negative
is_single_false

Is single false
partopt.pls

Defining the optimum partition given a set of segmentation variables
mox.tree

Resuming the tree attributes (regression model) : it gives general information about the tree
test.particion.reg

Calculating the comparison tests for the regression model
treemodelreg

create method treemodelreg
splitopt.reg

Defining optimum partition for a specific variable (regression model)
splitopt.pls

Defining optimum partition for a specific variable.
test.partition.pls

Calculating the comparison tests
node-class

node class
multigroup.pls

PATHMOX-PLS: Extended Segmentation Trees in Partial Least Squares Structutal Equation Modeling (PLS-SEM)
mox.tree.pls

Resuming the tree attributes: it gives general information about the tree
pls.treemodel

PLS-SEM results of terminal nodes from the Pathmox Segmentation Trees
pls.pathmox

PATHMOX-PLS: Extended Segmentation Trees in Partial Least Squares Structutal Equation Modeling (PLS-SEM)
partopt.reg

Defining the optimum partition given a set of segmentation variables (regression model)
treenode.pls

PLS-SEM results of a specific terminal node from the Pathmox Segmentation Trees
vector_to_dummy

Create a dummy matrix from the elements in a vector
sumlist

Sum of all elements in a list
is_negative_decimal

Is negative decimal
xtree.reg

create method xtree.reg
percent.node

Calculating size (numeber of individual of a node) stopo criterion
xtree.pls

create method xtree.pls
plot.xtree.pls

Plot function for the Pathmox Segmentation Trees: PLS-PM
is_positive_decimal

Is positive decimal
list_with_vectors

List with vectors
same_mode

Same Mode
same_dim

Same Dimension
same_length

Same Length
summary.xtree.pls

Summary function for the Pathmox Segmentation Trees: PLS-PM
tree-class

tree class
test_null_weights

Test outer weights convergence within specified maxiter
same_nrow

Same Number of Rows / Columns
test_manifest_scaling

Test scaling of selected manifest variables
test_factors

Test presence of factors
is_single_negative_integer

Is single negative integer
node.reg_class

node.reg class
is_single_negative_decimal

Is single negative decimal
is_single_true

Is single true
is_positive_integer

Is positive integer
is_square_matrix

Is square matrix
listsize

Size: total number of elements in a list
listify

Create a list from a vector of integers
nodes.tree

Calculating the element of all nodes
reg.pathmox

PATHMOX-REG: Segmentation Trees in linaer and LAD regression model
prodlist

Product of all elements in a list
same_type

Same Type
showDeepth

Calculating Deepth stop criterion