Simulate responses with random noise for generalized linear regression model
specifies additional options using one or more name-value pair arguments. For
example, you can specify the number of trials for binomial distribution or the
offset value used for fitting.ysim
= random(mdl
,Xnew
,Name,Value
)
For predictions without random noise, use predict
or feval
.
predict
accepts a single input argument containing
all predictor variables, and gives confidence intervals on its
predictions.
feval
accepts multiple input arguments with one input
for each predictor variable, which is simpler to use with a model created
from a table or dataset array. The feval
function does
not support the name-value pair arguments 'Offset'
and
'BinomialSize'
. The function uses 0 as the offset
value, and the output values are predicted probabilities.
CompactGeneralizedLinearModel
| feval
| GeneralizedLinearModel
| predict