knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
Understating statistical models is difficult. Experimentation on models should be a part of the learning process. This package provides functions that generate ideal data for generalized linear models. Model parameters, link functions, sample size, and more are adjustable. With data controlled, models can be experimented on.
library(GlmSimulatoR) set.seed(1) simdata <- simulate_gaussian(N = 200, weights = c(1, 2, 3)) model <- lm(Y ~ X1 + X2 + X3, data = simdata) summary(model)$coefficients
The estimates are close to the weights argument. The mathematics behind the linear model worked well.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.