The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
This R package can be used to generate artificial data conditionally on pre-specified (simulated or user-defined) relationships between the variables and/or observations. Each observation is drawn from a multivariate Normal distribution where the mean vector and covariance matrix reflect the desired relationships. Outputs can be used to evaluate the performances of variable selection, graphical modelling, or clustering approaches by comparing the true and estimated structures.
The released version of the package can be installed from CRAN with:
install.packages("fake")
The development version can be installed from GitHub:
::install_github("barbarabodinier/fake") remotes
library(fake)
set.seed(1)
<- SimulateRegression(n = 100, pk = 20)
simul head(simul$xdata)
head(simul$ydata)
set.seed(1)
<- SimulateRegression(n = 100, pk = 20, family = "binomial")
simul head(simul$ydata)
set.seed(1)
<- SimulateStructural(n = 100, pk = c(3, 2, 3))
simul head(simul$data)
set.seed(1)
<- SimulateGraphical(n = 100, pk = 20)
simul head(simul$data)
set.seed(1)
<- SimulateClustering(n = c(10, 10, 10), pk = 20)
simul head(simul$data)
The true model structure is returned in the output of any of the main functions in:
$theta simul
The functions print()
, summary()
and
plot()
can be used on the outputs from the main
functions.
R scripts to reproduce the simulation study (Bodinier et al. 2021) conducted using the functions in fake link
R package sharp for stability selection and consensus clustering link
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.