R/fetch.rho.v.R

fetch.rho.v <-
function(v,b){
	para <- b[length(b)]
	vari <- diag(v)[length(b)]
	br <- 2*(1/(1+exp(-para)))-1
	draws <- rnorm(1000,br,sqrt(vari))
	vv <- 2*(1/(1+exp(-draws)))-1
	varL <- var(vv)
	return(varL)
}

Try the StratSel package in your browser

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

StratSel documentation built on May 2, 2019, 11:11 a.m.