Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

disp

Class: GeneralizedLinearModel

Display generalized linear regression model

Syntax

disp(mdl)

Description

disp(mdl) displays the mdl linear model.

Input Arguments

mdl

Generalized linear model, as constructed by fitglm or stepwiseglm.

Examples

expand all

Create and display a generalized linear regression model.

Create a generalized linear regression model of Poisson data.

X = 2 + randn(100,1);
mu = exp(1 + X/2);
y = poissrnd(mu);
mdl = fitglm(X,y,...
    'y ~ x1','distr','poisson');

Display the model.

disp(mdl)
Generalized Linear regression model:
    log(y) ~ 1 + x1
    Distribution = Poisson

Estimated Coefficients:
                   Estimate    SE          tStat     pValue    
    (Intercept)     0.9581     0.090294    10.611    2.6519e-26
    x1             0.51027     0.033738    15.124    1.1179e-51


100 observations, 98 error degrees of freedom
Dispersion: 1
Chi^2-statistic vs. constant model: 221, p-value = 5.77e-50

Alternatives

Enter mdl at the command line to obtain a display, where mdl is the name of your model.

Was this topic helpful?