generate_polynomial: Generate polynomial random data

Description Usage Arguments Value

View source: R/generate_polynomial.R

Description

Generate polynomial random data

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
generate_polynomial(
  cor = 0.3,
  poly = -0.4,
  n = 200,
  means = c(0, 0),
  sds = c(1, 1),
  names = c("x", "y"),
  plot = TRUE,
  ...
)

Arguments

cor

correlation coefficient

poly

strength of polynomial term

n

sample size

means

means of x and y, respectively

sds

sds of x and y, respectively

names

names of x/y, respectively

plot

should a plot be returned?

...

other arguments passed to flexplot

Value

either a plot or generated data


dustinfife/fifer documentation built on Oct. 31, 2020, 3:36 p.m.