Hi Shane,
it sounds to me as though you have a fairly well-defined problem. You
want to generate random numbers with a specific mean, variance, and
correlation with another random varaible. I would reverse-enginerr
the fuinctions for simple linear regression to get a result like
y = beta_0 + be
I have the following script for generating a dataset. It works like a champ
except for a couple of things.
1. I need the variables "itbs" and "map" to be negatively correlated with the
binomial variable "lunch" (around -0.21 and -0.24, respectively). The binomial
variable "lunch" needs to
2 matches
Mail list logo