# NOT RUN {
# Aphids.
fita <- mixreg(plntsInf~aphRel,ncomp=2,seed=42,data=aphids)
cMafi <- covMix(fita)
# }
# NOT RUN {
cMaMC <- covMixMC(fita)
# }
# NOT RUN {
# Kilns.
thStrt <- list(
list(beta=c(26.07,48808),sigsq=1.1573,lambda=0.33333333),
list(beta=c(23.48,32387),sigsq=1.8730,lambda=0.33333333),
list(beta=c(-0.0597,20760),sigsq=0.2478,lambda=0.33333333)
)
fitk <- mixreg(y ~ x,ncomp=3,data=kilnAoneOut,thetaStart=thStrt)
# }
# NOT RUN {
cMkfi <- covMix(fitk)
cMkMC <- covMixMC(fitk)
cMkMCs <- covMixMC(fitk,semiPar=TRUE)
# }
Run the code above in your browser using DataLab