spec.data | R Documentation |
Generates running variables, and corresponding standard deviations and regression function values given a specification.
spec.data(spec.ind, which.fun, n, th, C.big, C.small, sig.scale, seed = 1)
spec.ind |
|
which.fun |
which regression function to evaluate; supports |
n |
sample size. |
th |
true RD parameter. |
C.big |
the value of C corresponding to the large C. |
C.small |
the value of C corresponding to the small C. |
sig.scale |
scaling parameter for the standard deviation. |
seed |
the random number seed used to generate regressors; the default is
|
a list with components x
(running variables),
sig
(standard deviations), and fx
(regression function values).
spec.ind <- data.frame(unif = 1, homo = 0, trueCsmall = 0) spec.data(spec.ind, 1, 100, 1, 3, 1, 1/2) spec.data(spec.ind, 6, 100, 1, 3, 1, 1/2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.