coef.BranchGLM | R Documentation |
Extracts beta coefficients from BranchGLM
objects.
## S3 method for class 'BranchGLM'
coef(object, type = "estimates", ...)
object |
a |
type |
"estimates" to only return the coefficient estimates or "all" to return the estimates along with SEs, test statistics, and p-values. |
... |
further arguments passed to or from other methods. |
A named vector with the corresponding coefficient estimates or a data.frame with the coefficient estimates along with SEs, test statistics, and p-values.
Data <- iris
# Linear regression model
Fit <- BranchGLM(Sepal.Length ~ ., data = Data, family = "gaussian", link = "identity")
Fit
# Getting only coefficient estimates
coef(Fit, type = "estimates")
# Getting coefficient estimates along with SEs, tests, and p-values
coef(Fit, type = "all")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.