R/xxirt_compute_prior_Theta_from_x.R

Defines functions xxirt_compute_prior_Theta_from_x

## File Name: xxirt_compute_prior_Theta_from_x.R
## File Version: 0.07

xxirt_compute_prior_Theta_from_x <- function(x, em_args)
{
    # include parameters
    customTheta <- xxirt_parTheta_include_freeParameters(
                                customTheta=em_args$customTheta,
                                x=x[ em_args$parindex_Theta ])

    #*** compute prior distribution
    prior_Theta <- xxirt_compute_priorDistribution( Theta=em_args$Theta,
                                  customTheta=customTheta, G=em_args$G )

    return(prior_Theta)
}
alexanderrobitzsch/sirt documentation built on Sept. 8, 2024, 2:45 a.m.