reg | R Documentation |
Computes regression such that one variable is regressed over all other variables
reg(
data,
family = c("binomial", "gaussian", "Gamma", "poisson"),
symmetric = TRUE
)
data |
A dataset |
family |
Error distribution to be used in the regression model.
Defaults to |
symmetric |
Should matrix be symmetric?
Defaults to |
A matrix of fully regressed coefficients where one variable is regressed over all others
Alexander Christensen <alexpaulchristensen@gmail.com>
#binarize responses
psyb <- ifelse(neoOpen>=4, 1, 0)
## Not run:
#perform logistic regression
mat <- reg(psyb)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.