Description Usage Arguments Details Value Examples
Generates a vector of population regression coefficients
1 |
p |
the number of coefficients |
method |
one of eight named methods of generation, see Details below |
b1 |
for |
s |
for |
spar |
the l2 norm of the resulting coefficient vector, see Details below |
... |
optional arguments to random number generators, see Details below |
This function generates a vector of coefficients using one of eight methods.
The result is b1^(1:p)
p:1/p
Produces s
coefficents drawn independently from the Laplace distribution, followed by p-s
zeros
uniform random coefficents, takes arguments in ...
Random Normal coefficients, takes arguments in ...
all coefficients are equal and the vector has l2 norm spar
Same as lindecay
except that the resulting vector has norm spar
produces a p-vector of 1's
a vector of length p
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.