Learn R Programming

PCIT (version 1.5-3)

pcitMemoryRequirement: Calculate the memory requirement for running PCIT

Description

This function attempts to determine the amount of computer memory that would be required to run PCIT of a given correlation matrix.

Usage

pcitMemoryRequirement(m, units=c("MB", "bytes", "KB", "GB", "TB"), nCopies=3)

Arguments

m
- A correlation matrix on which PCIT may be run, OR the number of rows/columns from such a matirx
units
- The units of RAM memory to be use for the returned value
nCopies
- The maximum number of copies of the correlation matrix which PCIT holds at any one time

See Also

maxMatrixSize

Examples

Run this code
	m <- matrix(1, 20, 20)
	diag(m) <- 0
	m
	pcitMemoryRequirement(m, "KB")
	pcitMemoryRequirement(10000, "GB")

Run the code above in your browser using DataLab