gen_smooth: Generate simulated data for smoothing models

View source: R/Data.R

gen_smoothR Documentation

Generate simulated data for smoothing models

Description

Generate simulated data for smoothing models

Usage

gen_smooth(n = 150, xlim = c(0.2, 4.6), x.jitter = 0.65, seed = NULL)

Arguments

n

Sample size.

xlim

Limits of the X variables to generate from.

x.jitter

A small amount of jitter is added to the X variables generated from a normal distribution with mean zero and standard deviation equal to x.jitter.

seed

(Optional) Random seed.

Value

A dataframe containing the response variable y and unidimensional explanatory variable X.

Examples

gen_smooth(10)


haziqjamil/iprior documentation built on April 2, 2024, 5:26 p.m.