Nothing
## File Name: invariance_alignment_define_parameters.R
## File Version: 0.191
invariance_alignment_define_parameters <- function(x, ind_alpha, ind_psi,
fix_first_psi=TRUE, reparam=FALSE, constraint="prod", overparam=FALSE)
{
alpha0 <- c(0, x[ind_alpha])
if (fix_first_psi){
psi0 <- c(1, x[ind_psi])
} else {
psi0 <- c(x[ind_psi])
}
if (reparam & ( constraint=='prod') ){
prod_psi <- prod(psi0)
NX <- length(psi0)
psi0 <- psi0 / ( prod_psi^(1/NX) )
}
if (reparam & ( constraint=='sum') ){
psi0 <- psi0 - mean(psi0) + 1
}
#--- output
res <- list(alpha0=alpha0, psi0=psi0)
return(res)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.