Learn R Programming

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

genpathmox (version 0.5)

Generalized Pathmox Approach Segmentation Tree Analysis

Description

Provides a very interesting solution for handling segmentation variables in complex statistical methodology. It contains en extended version of the "Pathmox" algorithm (Lamberti, Sanchez and Aluja,(2016)) in the context of Partial Least Squares Path Modeling including the F-block test (to detect the responsible latent endogenous equations of the difference), the F-coefficient (to detect the path coefficients responsible of the difference) and the "invariance" test (to realize a comparison between the sub-models' latent variables). Furthermore, the package contains a generalized version of the "Pathmox" algorithm to approach different methodologies: linear regression and least absolute regression models.

Copy Link

Version

Install

install.packages('genpathmox')

Monthly Downloads

241

Version

0.5

License

GPL-3

Maintainer

Giuseppe Lamberti

Last Published

November 16th, 2020

Functions in genpathmox (0.5)

Fc.test.pls

Coefficient test
bin.levels

Defining labels of the binary partions.
Fg.test.reg

Global test for the regression model
all.part.reg

Defining the candidates to the optimum partition for each of segmentation variables (regression model)
Fb.test.pls

Block test
F.data.pls

Defining the matrices needed for the comparison test
F.data.reg

Defining the matrices needed for the comparison test (regression model)
candidates.tree

Listing the candidates partions for each intermedied nodes
check_data

Check Data
all.part.pls

Defining the candidates to the optimum partition for each of segmentation variables
Fc.test.reg

Coefficient test for the regression model
check_blocks

Check well defined blocks
build.block

Defining the linear relations between the latent variables.
blockdiag

Building the Bart matrix
get_path_scheme

Calculate inner weighting path scheme
get_PLSR

Internal PLS regression (full data)
dummy_to_list

Create an indexed list from a dummy matrix
fcoef.tree.reg

Listing the the f-coefficients test results for regression model for each obtained partition
dummy.G

Dummy by Giorgio
fcoef.tree.pls

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

Internal PLS regression with missing values
check_scheme

Check scheme
check_scaling

Check types of measurement scales and metric
fglobal.tree

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

Check bootstrap options
get_weights_nonmetric

Outer Weights Non-Metric Data
get_paths

Calculate path coefficients for plspm
get_weights

Outer Weights
check_args

Check arguments for plspm and plspm.fit
from_to

Starting and ending positions
fglobal.tree.pls

Listing the the f-global test results for each obtained partition
Fg.test.pls

F-Global test.
funlist

Apply a function to all elements in a list
check_model

Check congruence between inner and outer models
get_effects

Path coefficient effects for plspm
check_modes

Check modes
get_generals

Get general parameters
get_numerics

Transform factors in MV into numeric
get_ord_scale

Calculate inner weighting path scheme
df_to_blocks

Split a data frame into blocks
comb

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

Check maximum number of iterations
info.reg_class

info.reg class
info.pls_class

info.pls class
check_specs

Check specifications of PLS-PM algorithm
check_path

Check path matrix
get_manifests

Building data matrix with manifest variables
factor_to_dummy

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

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

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

Check tolerance threshold
get_metric

Type of metric based on scaling measurement
element

Defining labels of a path coefficient.
has_missing

Has missing values, NA, NaN, Inf
is_negative_decimal

Is negative decimal
fibtele

Fibtele
is_negative

Is negative
get_boot_stats

Get data frame with bootstrap statistics
fibtelereg

Fibtelereg
has_names

Has or lacks names?
is_square_matrix

Is square matrix
f.min

Defining vector minimum position
get_boots

Performs bootstrap validation in plspm
get_num_scale

Non-Metric Numerical Scale
is_single_true

Is single true
get_nom_scale

Non-Metric Nominal Scale
get_dummies

Dummy matrices for categorical manifest variables
node-class

node class
node.reg_class

node.reg class
prodlist

Product of all elements in a list
get_gof

Goodness-of-fit for plspm
has_rownames

Has or lacks row/column names?
indexify

Create indices for elements in a vector or list
reg.pathmox

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

Non-Metric Dummy
get_inner_summary

Inner summary assessment
is_class

Is class
same_nrow

Same Number of Rows / Columns
is_dataframe

Is data frame
is_even

Is even
same_type

Same Type
get_rank

Rank of a non-metric variable
get_scores

Calculate Latent Variable Scores
splitopt.reg

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

Apply corresponding treatment to MV
is_decimal

Is decimal
is_multiple

Is multiple
is_diagonal

Is diagonal matrix
get_unidim

Unidimensionality of reflective blocks
is_natural

Is natural
is_positive

Is positive
is_one_dim

Test if an object has one-dimension
is_integer

Is integer
is_missing

Presence of missing values
invariance_test

Invariance Test
has_dimension

Has dimension?
is_multidim

Test if an object is multi-dimensional
invariance

Calculating the invariance test
sumlist

Sum of all elements in a list
is_negative_integer

Is negative integer
is_odd

Is even
is_single_number

Is single number
has_factors

Has factors?
is_single_odd

Is single odd
list_to_matrix

Design-type matrix from the elements in a list
is_rectangular_matrix

Is rectangular matrix
is_scalar

Is scalar
list_with_vectors

List with vectors
is_single_negative

Is single negative number
is_tabular

Is tabular
info.mox.pls

Giving general information about the pathmox algorithm
is_vector

Is vector
is_single_logical

Is single logical
tree-class

tree class
is_single_even

Is single even
is_positive_decimal

Is positive decimal
is_positive_integer

Is positive integer
info.mox.reg

Giving general information about the pathmox-lm algorithm
treemodel

create method treemodel
print.xtree.pls

Print function for the Pathmox Segmentation Trees: PLS-PM
same_length

Same Length
is_single_decimal

Is single decimal
same_mode

Same Mode
plspm

PLS-PM: Partial Least Squares Path Modeling
is_single_false

Is single false
is_single

Is single
is_single_positive_decimal

Is single positive decimal
is_single_positive

Is single positive number
is_lower_triangular

Is triangular matrix
is_square_numeric_matrix

Is square numeric matrix
test_manifest_scaling

Test scaling of selected manifest variables
lengths

Length of each element within a list
mox.tree

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

List of vectors
is_string

Is string
pls.pathmox

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

Normalize a vector
list_ones

List with vectors of ones
list_to_dummy

Create a dummy matrix from the elements in a list
nodes.tree

Calculating the element of all nodes
listify

Create a list from a vector of integers
is_matrix

Is matrix
mox.tree.pls

Resuming the tree attributes: it gives general information about the tree
test_null_weights

Test outer weights convergence within specified maxiter
reg.treemodel

Regression results of terminal nodes from the Pathmox Segmentation Trees
partopt.pls

Defining the optimum partition given a set of segmentation variables
partition

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

Size: total number of elements in a list
pls.treemodel

PLS-PM results of terminal nodes from the Pathmox Segmentation Trees
test.partition.pls

Calculating the comparison tests
root.tree

Calculating the element of the root node
test_factors

Test presence of factors
is_single_negative_decimal

Is single negative decimal
xtree.pls

create method xtree.pls
is_single_negative_integer

Is single negative integer
xtree.reg

create method xtree.reg
print.xtree.reg

Print function for the Pathmox Segmentation Trees: linear regression and LAD
same_class

Same Class
printTree

printing the tree structure
test.particion.reg

Calculating the comparison tests for the regression model
terminal.tree

Calculating the element of the terminal nodes
same_dim

Same Dimension
is_single_positive_integer

Is single positive integer
treemodelreg

create method treemodelreg
vector_to_dummy

Create a dummy matrix from the elements in a vector
is_single_string

Is single string
matrix_to_blocks

Split a matrix into blocks
maxlist

Maximum of all elements in a list
partopt.reg

Defining the optimum partition given a set of segmentation variables (regression model)
meanlist

Mean of all elements in a list
percent.node

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

Minimum of all elements in a list
showDeepth

Calculating Deepth stop criterion
summary.xtree.pls

Summary function for the Pathmox Segmentation Trees: PLS-PM
summary.xtree.reg

Summary function for the Pathmox Segmentation Trees: linaer regression and LAD
splitopt.pls

Defining optimum partition for a specific variable.