Description Usage Arguments Details Value Author(s) Examples
Generates data based on the logistic regression model using the inverse logit link function.
1 | gendat_logreg(n, beta, rFUN_X = rnorm, ...)
|
n |
Sample size. |
beta |
k \times 1 vector of k regression parameters. |
rFUN_X |
The distribution function
used to generate values of \mathbf{X}.
The default value is |
... |
Arguments to pass to |
Randomly generates the data matrix \mathbf{X} and the regressand data \mathbf{y}. \mathbf{y}_{n \times 1} is generated from a binomial distribution where p ≤ft( x \right) is equal to \frac{ 1 } { 1 - e^{- ≤ft( \mathbf{X}_{n \times k} \boldsymbol{β}_{n \times 1} \right)} } .
Returns a list with two elements X
and y
.
X
is the data matrix,
that is an n \times k matrix
of n observations of k regressors,
which includes a regressor whose value is 1 for each observation.
y
n \times 1 vector of observations on the regressand.
Ivan Jacob Agaloos Pesigan
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.