Learn R Programming

simglm (version 0.8.0)

data_reg_single: Simulates single level data

Description

Takes simulation parameter arguments and returns simulated data.

Usage

data_reg_single(Xmat, beta, n, err)

Arguments

Xmat

A matrix of covariates.

beta

A vector of regression parameters.

n

Number of clusters.

err

A vector of within cluster errors.

Details

This is a helper function to the master function sim_reg, this function does the actual simulation to return the data for single level models.