R/getpar.gagafit.r

Defines functions getpar.gagafit

Documented in getpar.gagafit

getpar.gagafit <- function(fit) {
#returns parameter estimates from a 'gagafit' object in a named list
if (sum(is.na(fit$parest)>0)) stop('Parameter estimates not available. Use function parest first.')
nclust <- fit$nclust
return(list(a0=fit$parest[1:nclust],nu=fit$parest[(nclust+1):(2*nclust)],balpha=fit$parest[2*nclust+1],nualpha=fit$parest[2*nclust+2],probclus=fit$parest[(2*nclust+3):(3*nclust+2)],probpat=fit$parest[-1:-(3*nclust+2)]))
}

Try the gaga package in your browser

Any scripts or data that you put into this service are public.

gaga documentation built on Nov. 8, 2020, 5:49 p.m.