Plot interaction effects of two predictors in linear regression model
plotInteraction(
创建一个情节主要影响的the two selected predictorsMDL
,var1
,var2
)var1
和var2
和他们conditional effectsin the linear regression modelMDL
。通过效应值的水平线表示其95%的置信区间。
The data cursor displays the values of the selected plot point in a data tip (small text box located next to the data point). The data tip includes thex- 轴和y-axis values for the selected point, along with the observation name or number.
ALinearModel
对象提供多个绘图功能。
When creating a model, useplotAdded
to understand the effect of adding or removing a predictor variable.
验证模型时,请使用PlotDiangnostics
to find questionable data and to understand the effect of each observation. Also, useplotResiduals
分析模型的残差。
After fitting a model, useplotAdjustedResponse
,plotPartialDependence
, 和plotEffects
了解特定预测指标的效果。利用plotInteraction
to understand the interaction effect between two predictors. Also, use图块
to plot slices through the prediction surface.