TestData: TestData

Description Usage Arguments Value Examples

View source: R/TestData.R

Description

Simple function for creating a dataset of two related variables.

Usage

1
TestData(nobs = 1000, intercept = 0, beta = 5, meanX = 0, sdX = 1, sdYerr = 1)

Arguments

nobs

Number of observations, defaults to 1000

intercept

Intercept of the regression. Defaults to 0

beta

Beta for the regression equation, defaults to 5

meanX

Mean of X, defaults to 0

sdX

Standard deviation of X, defaults to 1

sdYerr

Variance of the error term of Y, defaults to 1

Value

A dataframe with an X and Y variable produced by the entered parameters

Examples

1
X<-TestData()

Omisc documentation built on Jan. 21, 2021, 9:06 a.m.

Related to TestData in Omisc...