Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/residuals.mixreg.R
Calculates the residuals from each component of the mixture and the matrix of probabilities that each observation was generated by each component.
1 2 |
object |
An object of class |
std |
Logical argument; if TRUE then the residuals are standardized (by dividing them by their estimated standard deviation). |
... |
Not used. |
The calculation of the estimated standard deviations of the residuals is a little bit complicated since each component of the model is fitted using weighted regression in a setting in which the weights are NOT the reciprocals of error variances. See the reference below for more detail.
A list (of class "mixresid") with entries
resid |
The residuals of the model, bundled together in a n x K matrix, where n is the number of observations and K is the number of components in the model. The kth column of this matrix is the vector of residuals from the kth component of the model. |
fvals |
Matrix of the fitted values of the model, structured like |
gamma |
An n x K matrix of probabilities. The entry
|
x |
The matrix of predictors in the regression model (or if there is only one predictor, this predictor as a vector). |
y |
The vector of response values. |
vnms |
Character vector; the first entry is the name of the response. The
remaining entries are “reasonable” names for the individual
(vector) predictors. Note that if there is no predictor then |
noPred |
Logical scalar; set to |
Rolf Turner r.turner@auckland.ac.nz
T. Rolf Turner (2000). Estimating the rate of spread of a viral infection of potato plants via mixtures of regressions. Applied Statistics 49 Part 3, pp. 371 – 384.
ncMcTest()
,cband()
, covMix()
,
mixreg()
, plot.cband()
,
plot.mixresid()
, qqMix()
,
residuals.mixreg()
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.