R/untrans.theta.R

Defines functions untrans.theta

untrans.theta <-
function(theta, scale)
{

	ind <- which(scale == "log")
	if (length(ind)) 
	theta[ind] <- exp(theta[ind])
	ind <- which(scale == "logistic")
	if (length(ind)) 
	theta[ind] <- exp(theta[ind])/(1 + exp(theta[ind]))
	ind <- which(scale == "logistic180")
	if (length(ind)) 
		theta[ind] <- 180 * exp(theta[ind])/(1 + exp(theta[ind]))
	theta

}

Try the SSN package in your browser

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

SSN documentation built on March 7, 2023, 5:30 p.m.