Description Usage Arguments Value Examples
Simple function for creating a dataset of two related variables.
1 |
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 |
A dataframe with an X and Y variable produced by the entered parameters
1 | X<-TestData()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.