# NOT RUN {
# Aphids.
fita <- mixreg(plntsInf~aphRel,ncomp=2,seed=42,data=aphids)
resa <- residuals(fita,std=TRUE)
qqMix(resa,size=2,shape="l")
qqMix(resa,shape="n",pch=7,cex=1.5)
# Kilns.
thStrt <- list(list(beta=c(26.1,48800),sigsq=0.58,lambda=0.33333333),
list(beta=c(23.5,32400),sigsq=0.58,lambda=0.33333333),
list(beta=c(-0.06,20760),sigsq=0.58,lambda=0.33333333))
fitk <- mixreg(y ~ x,ncomp=3,data=kilnAoneOut,thetaStart=thStrt)
# }
# NOT RUN {
# Takes too long
resk <- residuals(fitk,std=TRUE)
qqMix(resk,shape="s")
qqMix(resk,shape="s",xlim=c(-0.25,0.9),ylim=c(-3,3))
qqMix(resk,shape="n")
# }
Run the code above in your browser using DataLab