partial: Partial Correlation

View source: R/partial.h.R

partialR Documentation

Partial Correlation

Description

Partial Correlation

Usage

partial(
  data,
  vars,
  ctrlvars,
  type = "pearson",
  missing = "pairwise.complete.obs",
  sidSig = "twotailed",
  scale = "raw0",
  shwSig = FALSE,
  flgSig = TRUE,
  cen = FALSE,
  plot = TRUE,
  model = "glasso",
  layout = "spring",
  shape = "circle",
  plot2 = FALSE,
  width = 500,
  height = 500,
  width1 = 500,
  height1 = 500,
  angle = 0
)

Arguments

data

The data as a data frame.

vars

.

ctrlvars

.

type

.

missing

.

sidSig

.

scale

.

shwSig

.

flgSig

.

cen

.

plot

.

model

.

layout

.

shape

.

plot2

.

width

.

height

.

width1

.

height1

.

angle

.

Value

A results object containing:

results$instructions a html
results$text2 a preformatted
results$matrix a table
results$plot an image
results$plot2 an image
results$cen a table

Tables can be converted to data frames with asDF or as.data.frame. For example:

results$matrix$asDF

as.data.frame(results$matrix)


hyunsooseol/seolmatrix documentation built on July 4, 2025, 3:05 a.m.