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
beta
A vector of regression parameters.
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.