gs_norm_corr: Wrapper for faux rnorm_pre

Description Usage Arguments

View source: R/sim.R

Description

Wrapper for faux rnorm_pre

Usage

1
2
3
4
5
6
7
8
9
gs_norm_corr(
  .data,
  colname,
  corr_col,
  mu = 0,
  sd = 1,
  r = 0,
  empirical = FALSE
)

Arguments

.data

(required) the source data

corr_col

the correlated column name

mu

desired mean of returned vector

sd

desired SD of returned vector

r

desired correlation between existing and returned observations

empirical

logical. If true, mu, sd and r specify the empirical not population mean, sd and covariance


shambhu112/gsim documentation built on Jan. 21, 2021, 6:20 p.m.