knitr::opts_chunk$set(echo = TRUE, comment = NULL)
library(simrel)

Simulation of Linear Model Data

This package is build on top of R6 class and has one main class and three child classes based on it. Each of these classes are responsible for simulating Univariate (one response), Bivariate (two correlated responses) and Multivariate (multiple responses with distinct relevant predictor space) linear model data. The package is based on ...

Single Response multiple linear regression data

sobj <- UniSimrel$new()
str(sobj$list_parameters)

Properties of Simulated Data

str(sobj$list_properties)

Simulate Data

dta <- sobj$get_data()
str(dta)

Double Response multiple linear regression data

sobj <- BiSimrel$new()
str(sobj$list_parameters)

Properties of Simulated Data

str(sobj$list_properties)

Simulate Data

dta <- sobj$get_data()
str(dta)

Multi Response multiple linear regression data

sobj <- MultiSimrel$new()
str(sobj$list_parameters)

Properties of Simulated Data

str(sobj$list_properties)

Simulate Data

dta <- sobj$get_data()
str(dta)


simulatr/simrel-r6 documentation built on May 29, 2019, 9:36 a.m.