Learn R Programming

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

genpathmox (version 0.7)

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) ).

Copy Link

Version

Install

install.packages('genpathmox')

Monthly Downloads

241

Version

0.7

License

GPL-3

Maintainer

Giuseppe Lamberti

Last Published

August 12th, 2021

Functions in genpathmox (0.7)

Fg.test.pls

F-Global test.
blockdiag

Building the Bart matrix
bin.levels

Defining labels of the binary partions.
F.data.pls

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

Coefficient test
F.data.reg

Defining the matrices needed for the comparison test (regression model)
all.part.pls

Defining the candidates to the optimum partition for each of segmentation variables
check_boot

Check bootstrap options
check_data

Check Data
Fg.test.reg

Global test for the regression model
Fc.test.reg

Coefficient test for the regression model
check_tol

Check tolerance threshold
get_PLSR_NA

Internal PLS regression with missing values
get_PLSR

Internal PLS regression (full data)
fcoef.tree.reg

Listing the the f-coefficients test results for regression model for each obtained partition
fglobal.tree

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

Non-Metric Nominal Scale
comb

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

Check arguments for plspm and plspm.fit
all.part.reg

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

Check well defined blocks
check_modes

Check modes
fibtelereg

Fibtelereg
check_scaling

Check types of measurement scales and metric
check_path

Check path matrix
check_plscomp

Check vector of PLS components (for non-metric plspm)
fglobal.tree.pls

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

Check congruence between inner and outer models
dummy.G

Dummy by Giorgio
check_maxiter

Check maximum number of iterations
get_dummies

Dummy matrices for categorical manifest variables
dummy_to_list

Create an indexed list from a dummy matrix
get_boot_stats

Get data frame with bootstrap statistics
from_to

Starting and ending positions
funlist

Apply a function to all elements in a list
get_boots

Performs bootstrap validation in plspm
get_generals

Get general parameters
get_effects

Path coefficient effects for plspm
candidates.tree

Listing the candidates partions for each intermedied nodes
build.block

Defining the linear relations between the latent variables.
get_path_scheme

Calculate inner weighting path scheme
get_num_scale

Non-Metric Numerical Scale
has_rownames

Has or lacks row/column names?
get_manifests

Building data matrix with manifest variables
indexify

Create indices for elements in a vector or list
is_even

Is even
is_negative

Is negative
is_negative_decimal

Is negative decimal
get_dummy

Non-Metric Dummy
is_integer

Is integer
is_scalar

Is scalar
is_rectangular_matrix

Is rectangular matrix
check_scheme

Check scheme
get_paths

Calculate path coefficients for plspm
get_metric

Type of metric based on scaling measurement
get_treated_data

Apply corresponding treatment to MV
has_dimension

Has dimension?
get_rank

Rank of a non-metric variable
get_unidim

Unidimensionality of reflective blocks
is_negative_integer

Is negative integer
is_class

Is class
csibank

CSIbank
is_dataframe

Is data frame
df_to_blocks

Split a data frame into blocks
is_odd

Is even
check_specs

Check specifications of PLS-PM algorithm
factor_to_dummy

Create a dummy matrix from the elements in a factor
fcoef.tree.pls

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

Goodness-of-fit for plspm
is_single_false

Is single false
get_inner_summary

Inner summary assessment
is_single_positive

Is single positive number
is_single_positive_decimal

Is single positive decimal
is_single_even

Is single even
is_single_logical

Is single logical
is_square_numeric_matrix

Is square numeric matrix
get_weights

Outer Weights
f.min

Defining vector minimum position
get_numerics

Transform factors in MV into numeric
element

Defining labels of a path coefficient.
info.pls-class

info.pls class
is_single_negative

Is single negative number
has_factors

Has factors?
get_scores

Calculate Latent Variable Scores
get_weights_nonmetric

Outer Weights Non-Metric Data
has_missing

Has missing values, NA, NaN, Inf
get_ord_scale

Calculate inner weighting path scheme
is_square_matrix

Is square matrix
is_single_true

Is single true
list_to_matrix

Design-type matrix from the elements in a list
info.reg_class

info.reg class
has_names

Has or lacks names?
is_missing

Presence of missing values
is_single_positive_integer

Is single positive integer
is_multidim

Test if an object is multi-dimensional
is_lower_triangular

Is triangular matrix
list_with_vectors

List with vectors
is_decimal

Is decimal
is_single_string

Is single string
is_positive

Is positive
is_matrix

Is matrix
is_one_dim

Test if an object has one-dimension
percent.node

Calculating size (numeber of individual of a node) stopo criterion
is_string

Is string
partopt.reg

Defining the optimum partition given a set of segmentation variables (regression model)
reg.pathmox

PATHMOX-REG: Segmentation Trees in linaer and LAD regression model
mox.tree

Resuming the tree attributes (regression model) : it gives general information about the tree
list_ones

List with vectors of ones
mox.tree.pls

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

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

Is tabular
is_single_negative_decimal

Is single negative decimal
treemodelreg

create method treemodelreg
root.tree

Calculating the element of the root node
is_single_negative_integer

Is single negative integer
list_to_dummy

Create a dummy matrix from the elements in a list
info.mox.reg

Giving general information about the pathmox-lm algorithm
info.mox.pls

Giving general information about the pathmox algorithm
is_diagonal

Is diagonal matrix
is_positive_decimal

Is positive decimal
is_multiple

Is multiple
is_positive_integer

Is positive integer
is_vector

Is vector
matrix_to_blocks

Split a matrix into blocks
plot.xtree.pls

Plot function for the Pathmox Segmentation Trees: PLS-PM
pls.pathmox

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

Is natural
printTree

printing the tree structure
partition

Defining binary partitions given a segmentation variable (factor).
partopt.pls

Defining the optimum partition given a set of segmentation variables
listify

Create a list from a vector of integers
maxlist

Maximum of all elements in a list
prodlist

Product of all elements in a list
node.reg_class

node.reg class
node-class

node class
listsize

Size: total number of elements in a list
splitopt.reg

Defining optimum partition for a specific variable (regression model)
is_single_decimal

Is single decimal
sumlist

Sum of all elements in a list
is_single

Is single
same_class

Same Class
test_factors

Test presence of factors
nodes.tree

Calculating the element of all nodes
test.partition.pls

Calculating the comparison tests
is_single_number

Is single number
showDeepth

Calculating Deepth stop criterion
lengths

Length of each element within a list
is_single_odd

Is single odd
list_of_vectors

List of vectors
minlist

Minimum of all elements in a list
meanlist

Mean of all elements in a list
vector_to_dummy

Create a dummy matrix from the elements in a vector
xtree.pls

create method xtree.pls
splitopt.pls

Defining optimum partition for a specific variable.
same_length

Same Length
normalize

Normalize a vector
summarize.reg

Summary function for the Pathmox Segmentation Trees: linaer regression and LAD
summarize.mox

Summary function for the Pathmox Segmentation Trees: PLS-PM
pls.treemodel

PLS-SEM results of terminal nodes from the Pathmox Segmentation Trees
plspm

PLS-PM: Partial Least Squares Path Modeling
tree-class

tree class
same_mode

Same Mode
treemodel

create method treemodel
same_dim

Same Dimension
terminal.tree

Calculating the element of the terminal nodes
same_nrow

Same Number of Rows / Columns
same_type

Same Type
test_null_weights

Test outer weights convergence within specified maxiter
test_manifest_scaling

Test scaling of selected manifest variables
xtree.reg

create method xtree.reg
test.particion.reg

Calculating the comparison tests for the regression model