cov_nest: Compute covariance or correlation matrix with treatments for...

View source: R/cor_nest.R

cov_nestR Documentation

Compute covariance or correlation matrix with treatments for clusters and missing values

Description

Compute covariance or correlation matrix with treatments for clusters and missing values

Usage

cor_nest(.data, ..., cluster = NULL, missing = "fiml", pvalue = FALSE)

cov_nest(.data, ..., cluster = NULL, missing = "fiml", pvalue = FALSE)

Arguments

.data

a data frame, a numeric matrix.

...

further arguments.

cluster

a variable name defining the clusters in a two-level dataset in the data frame.

missing

treatment to deal with missing values. Options are "listwise" or "pairwise". Default if "fiml".

pvalue

an argument to indicate if p-values are required.

Value

A list of class "covnest"

Examples

cov_nest(airquality)

Rnest documentation built on April 3, 2025, 5:31 p.m.