summary.lmvar: Summary overview for an object of class 'lmvar'

Description Usage Arguments Details Value See Also Examples

Description

Summary overview for an object of class 'lmvar'.

Usage

1
2
## S3 method for class 'lmvar'
summary(object, mu = TRUE, sigma = TRUE, ...)

Arguments

object

Object of class 'lmvar'

mu

Boolean, specifies whether or not to include the coefficients β_μ in the table of coefficients

sigma

Boolean, specifies whether or not to include the coefficients β_σ in the table of coefficients

...

For compatibility with summary generic

Details

Standard errors and z-statistics are calculated under the assumption of asymptotic normality for maximum likelihood estimators. They may not be reliable when the number of observations in object is small.

Value

An object of class 'summary_lmvar'. This is a list with the following members:

See Also

coef to extract the matrix with estimates, standard-errors, t-statistics and p-values for β_μ and β_σ from a 'summary_lmvar' object.

vcov.lmvar for the covariance matrix of the β_μ and β_σ in an object of class 'lmvar'.

print.summary_lmvar for a print method for a 'summary_lmvar' object.

fitted.lmvar for the expected values and standard deviations of the observations in an object of class 'lmvar'.

logLik.lmvar for the log-likelihood of a fit in an object of class 'lmvar'.

alias.lmvar_no_fit to obtain the aliased columns of the user-supplied model matrices in the call of lmvar.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# As example we use the dataset 'attenu' from the library 'datasets'. The dataset contains
# the response variable 'accel' and two explanatory variables 'mag'  and 'dist'.
library(datasets)

# Create the model matrix for the expected values
X = cbind(attenu$mag, attenu$dist)
colnames(X) = c("mag", "dist")

# Create the model matrix for the standard deviations.
X_s = cbind(attenu$mag, 1 / attenu$dist)
colnames(X_s) = c("mag", "dist_inv")

# Carry out the fit
fit = lmvar(attenu$accel, X, X_s)

# Print a summary of the fit
summary(fit)

# Include only the coefficients beta for the expected values
summary(fit, sigma = FALSE)

# Include only the coefficients beta for the standard deviations
summary(fit, mu = FALSE)

# Extract the matrix of coefficients from the summary
coef(summary(fit))

lmvar documentation built on May 16, 2019, 5:06 p.m.