get_glm_sample_data | R Documentation |
This function generates sample data for a specified GLM family. It can generate binomial or Gaussian distributed data based on the provided parameters.
get_glm_sample_data(family_string, n = 10, mean = 0, sd = 1)
family_string |
Character. The family of the GLM. Options are |
n |
Integer. The number of samples to generate. |
mean |
Numeric. The mean of the distribution (used for both binomial and Gaussian). |
sd |
Numeric. The standard deviation of the distribution (used only for Gaussian). |
Numeric vector of generated sample data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.