Description Usage Arguments Value
Simulate data with specified R2
1 |
r2 |
desired adjusted R2 as numeric vector of length one |
n |
number of samples (rows) |
p |
number of dependent variables |
adjusted.r.square |
is the given |
Object of class "sim_data" wich is basically
a data.frame with first column "Y" and preceding
columns "Xi" (i = 1, ..., p) where
summary(lm(Y ~ ., data = d))$r.squared
is approximately
r2
and with some exrta attributes Rsquared
and
RMSE
with coresponding values based on the whole data.frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.