R/blca.R

Defines functions blca

Documented in blca

blca <-
function(X, G, method=c("em", "gibbs", "boot", "vb"),...){
	# if(length(method)>1){
		# method<- method[1]
		# warning(paste("More than one method specified", method, "method used only."))
		# } 
	method<- match.arg(method)
	
	if(method == "em") return(blca.em(X, G, ...))
	if(method == "vb") return(blca.vb(X, G, ...))
	if(method == "gibbs") return(blca.gibbs(X, G, ...))
	if(method == "boot") return(blca.boot(X, G, ...))
	}

Try the BayesLCA package in your browser

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

BayesLCA documentation built on July 2, 2020, 12:11 a.m.