R/model_partable_print.R

Defines functions plsGetWidthPrintedParTable plsPrintParTable

plsPrintParTable <- function(parTable,
                             scientific  = FALSE,
                             ci          = FALSE,
                             digits      = 3,
                             loadings    = TRUE,
                             regressions = TRUE,
                             covariances = TRUE,
                             intercepts  = TRUE,
                             variances   = TRUE,
                             thresholds  = TRUE,
                             ...) {

  if (!"label" %in% colnames(parTable))
    parTable$label <- ""

  parTable <- rename(
    .X      = parTable,
    est.std = "est",
    se      = "std.error",
    pvalue  = "p.value",
    p       = "p.value",
    zvalue  = "z.value",
    z       = "z.value"
  )

  modPrintParTable(
    parTable    = parTable,
    scientific  = scientific,
    ci          = ci,
    digits      = digits,
    loadings    = loadings,
    regressions = regressions,
    covariances = covariances,
    intercepts  = intercepts,
    variances   = variances,
    thresholds  = thresholds,
    ...
  )
}


plsGetWidthPrintedParTable <- function(parTable,
                                       scientific  = FALSE,
                                       ci          = FALSE,
                                       digits      = 3,
                                       ...) {

  if (!"label" %in% colnames(parTable))
    parTable$label <- ""

  modGetWidthPrintedParTable(
    parTable    = parTable,
    scientific  = scientific,
    ci          = ci,
    digits      = digits
  )
}

Try the plssem package in your browser

Any scripts or data that you put into this service are public.

plssem documentation built on Sept. 26, 2026, 5:06 p.m.