piecewiseSEM2.3.0.1 package

Piecewise Structural Equation Modeling

psem

Fitting piecewise structural equation models

removeCerror

Remove correlated errors from the basis set

removeData

Remove data from the model list

resid.lme

Get residuals from innermost grouping of mixed models (replicate-level...

residuals.psem

Residual values from fit models

reverseAddVars

Replace transformations in the basis set by cycling through neighbors ...

reverseNonLin

If intermediate endogenous variables are nonlinear, return both direct...

rsquared.gam

R^2 for gam objects

rsquared.glm

R^2 for glm objects

rsquared.glmerMod

R^2 for glmer objects

rsquared.glmmPQL

R^2 for glmmPQL objects

rsquared.gls

R^2 for gls objects

rsquared.lm

R^2 for lm objects

rsquared.lme

R^2 for lme objects

rsquared.merMod

R^2 for phylolm objects

rsquared.negbin

R^2 for negbin objects

getSortedPsem

Get a sorted psem object in DAG order

GetVarCov

Get random effects variance-covariance from lme

grapes-not_in-grapes

Operator for non-overlap in sets

grapes-twiddle-twiddle-grapes

Correlated error operator

handleCategoricalCoefs

Handles putting categorical variables into coefficient tables for easy...

import

Functions to import from dependencies

isSig

Assess significance

listFormula

Recompute P-values using Kenward-Rogers approximation

getCoefficients

Get coefficients from linear regression

getDAG

Generate adjacency matrix from list of structural equations

GetData

Get data from model list

getLHS

Get Left-hand side of formulae

GetOLRE

Obtain (observation-level) random effects from a generalized linear mi...

getResidModels

Identify models with correlated errors and return modified versions

getRHS

Get Right-hand side of formulae

getSatModels

Get saturated model by reinserting all excluded paths

GetSDx

Get standard deviation of predictor variables

GetSDy

Properly scale standard deviations depending on the error distribution

GetSingleData

Get data from one model

print.attr

Do not print attributes with custom functions

print.basisSet

Print basis set

print.multigroup.psem

Print multigroup

print.psem

Print psem

print.summary.psem

Print summary

AIC.psem

Generic function for SEM AIC(c) score

AIC_psem

Information criterion values for SEM

all_vars_merMod

Remove random effects from all.vars

all_vars_notrans

Get vector of untransformed variables

all_vars_trans

Get vector of transformed variables

anova.psem

ANOVA and chi-squared difference test for model comparison

anovaLRT

Chi-square difference test

anovaTable

Single anova

as.psem

Convert list to psem object

basisSet

Derivation of the basis set

captureTable

Captures output table

cbind_fill

Bind data.frames of differing dimensions

fisherC

Summarize tests of directed separation using Fisher's C statistic

cerror

Correlated errors

checkData

Check to see whether supplied data.frame matches model-extracted data

checkTransformations

Check to see whether variables exist as transformed and untransformed

coefs

Extract path coefficients

dataTrans

Transform variables based on model formula and store in new data frame

dSep

Tests of directed separation

dupOutput

Identify duplicate output

evaluateClasses

Evaluate model classes and stop if unsupported model class

filterExisting

Remove existing paths from the basis set

filterExogenous

Filter relationships among exogenous variables from the basis set (ign...

filterInteractions

Filter interactions from the d-sep tests

filterSmoothed

First, remove claims where linear and non-linear terms appear in the s...

findbars.lme

Get random effects from lme

fixCatDir

Flip independence claims so categorical variables are not the response

formatpsem

Format for psem

get_response

Get Response Name as a Character

getAnova

Get ANOVA results from merMod

LLchisq

Generalized chi-squared for piecewise SEM

multigroup

Multigroup Analysis for Piecewise SEM

nObs

Get number of observations from a model

onlyBars

Get random effects from merMod

partialCorr

Calculate partial correlations from partial residuals

partialResid

Computing partial effects

piecewiseSEM-package

The 'piecewiseSEM` package

plot.psem

Plotting of Piecewise Structural Equation Models

print.anova.psem

Print anova

rsquared

R-squared for linear regression

rsquared.Sarlm

R^2 for Sarlm objects

scaleGLM

Compute standard deviation or relevant range of response for GLMs

scaleInt

Calculate standard deviation or relevant range for interaction terms

sortDag

Sort DAG based on ancestry

specifyDir

Remove duplicate items from the basis set whose direction is not a pri...

stdCoefs

Calculate standardized regression coefficients

stop_psem

Stop function for unsupported methods

stripTransformations

Strip transformations

summary.psem

Summarizing piecewise structural equation models

testBasisSetElements

Evaluate conditional independence claim from the basis set

unstdCoefs

Get raw (undstandardized) coefficients from model

update.psem

Update psem model object with additional values.

Implements piecewise structural equation modeling from a single list of structural equations, with new methods for non-linear, latent, and composite variables, standardized coefficients, query-based prediction and indirect effects. See <http://jslefche.github.io/piecewiseSEM/> for more.

  • Maintainer: Jon Lefcheck
  • License: GPL-3
  • Last published: 2024-06-11