Description Usage Arguments Value Examples
Generate draws from simple linear regression
1 | dgp(sample_size, intercept, slope)
|
sample_size |
The sample size |
intercept |
The regression intercept |
slope |
The regression slope |
Returns a dataframe with columns x and y where y is generated as a linear function of x plus normal random noise, and x is uniform.
1 | dgp(sample_size = 10, intercept = 1, slope = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.