get_correlation_coefficient: Randomly create a correlation coefficient.

Description Usage Arguments Value

View source: R/utilities.r

Description

This function randomly creates a correlation coefficient.

Usage

1
get_correlation_coefficient(size, direction = "p", seed_number = 1)

Arguments

size

A character element (options: "w" for weak, "s" for small, "m" for moderate or "l" for large).

direction

A character element (options: "p" for positive or "n" for negative) This paramater is set to "p" by default.

seed_number

A numeric (integer) element that allows a randomly generated effect size to be reproduced. This parameter is set to 1 by default.

Value

Returns a numeric element between -0.7000 and 0.7000.


barnzilla/glebe.datasets documentation built on Oct. 29, 2020, 1:54 a.m.