Learn R Programming

dlsem (version 1.0)

pathCoeff: Compute path coefficients at a given time lag

Description

Compute path coefficients.

Usage

pathCoeff(x, lag = NULL, cumul = FALSE, conf = 0.95)

Arguments

x
An object of class dlsem.
lag
A non-negative integer or a vector of non-negative integers indicating the time lag at which path coefficients must be computed. If NULL, all relevant time lags are considered.
cumul
Logical. If FALSE (the default), instantaneous path coefficients are returned, otherwise cumulative ones are provided.
conf
The confidence level for edges in the object of class dlsem. Default is 0.95.

Value

  • A list of matrices, one for each dimension of argument lag. Each matrix contains point estimate and conf*100% confidence interval for each path coefficient.

See Also

dlsem

Examples

Run this code
data(agres)
mycode <- list(
  GVA~quec(NPATENT,0,4),
  PPI~quec(NPATENT,0,6)+quec(GVA,0,10),
  ENTR_INCOME~quec(NPATENT,0,3)+quec(GVA,1,10)
  )
mod0 <- dlsem(mycode,group="COUNTRY",context=c("GDP","FARM_SIZE"),
  data=agres,uniroot.check=TRUE,imputation=FALSE,log=TRUE)
pathCoeff(mod0,lag=c(0,5,10,15),cumul=TRUE)

Run the code above in your browser using DataLab