Learn R Programming

metaSEM (version 1.4.0)

pattern.n: Display the Accumulative Sample Sizes for the Covariance Matrix

Description

It displays the accumulative sample sizes for the covariance matrix.

Usage

pattern.n(x, n)

Value

A square matrix of the accumulative sample sizes of the input matrices.

Arguments

x

A list of square matrices

n

A vector of sample sizes.

Author

Mike W.-L. Cheung <mikewlcheung@nus.edu.sg>

Examples

Run this code
## Show the pattern of missing data
pattern.n(Hunter83$data, Hunter83$n)

#             Ability Knowledge Work sample Supervisor
# Ability        3815      3372        3281       3605
# Knowledge      3372      3532        2998       3322
# Work sample    3281      2998        3441       3231
# Supervisor     3605      3322        3231       3765

Run the code above in your browser using DataLab