Description Usage Arguments Details Value TODO FIXME Note Author(s) See Also Examples
simulateYX2 generates random variates of a
response variable under the given conditions of mean and
variance-covariance structure of matrices of predictors
and their coefficients.
1 2 3 4 |
N |
a number of random variates |
Xstr |
a structure of covariates X |
ztrunc |
FALSE by default |
xreg |
FALSE by default |
seed |
NULL a random seed |
shape |
a shape parameter of gamma distribution |
... |
other arguments |
Ystr |
structure of responses |
param1 |
a vector of regression parameters 1 |
param2 |
a vector of regression parameters 2 |
The mean parameter of a response variable is a function of linear predictor by a link function in the context of generalized linear models.
Log and logit links are supported.
Default to Xstr is an independent multivariate
normal distribution with mean Xmean, correlation
R, and standard deviation Xsd.
a list with components
n |
the number of observations which are actually realized |
y |
the
|
X |
the |
yX |
the |
A component with coefficients of predictors is not implemented yet.
Multinomal type of predictor is not incorporated yet.
No bugs are reported yet.
Default to a matrix decomposition method is
eigen. Other options are chol and
svd.
Currently, the link logit is not supported.
Chel Hee Lee <gnustats@gmail.com>
1 | # do not run
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.