Abstract
The semi-parametric Cox proportional hazards latent trait model provides flexibility in fitting response times without imposing strong assumptions like parametric models, but it brings estimation challenges. In this paper, we propose a flexible and efficient slice sampling algorithm within a fully Bayesian framework to estimate the hierarchical piecewise constant proportional hazards latent trait model. A comprehensive evaluation of this new Bayesian method is conducted through multiple simulation studies, considering various factors such as different sample sizes, diverse types of prior distributions, and varying strengths of speed and ability correlations. The proposed algorithm was also compared with the adaptive rejection for Gibbs sampling algorithm in a simulation study. In addition, four Bayesian model evaluation criteria are presented to assess model fit. The proposed parameter estimation technique is further exemplified using the computer-based Program for International Student Assessment science data.
Keywords
1. Introduction
Advances in computer technology have made it easier to collect response time (RT) data in psychological and educational assessments. By analyzing RTs alongside response scores, researchers can gain insights into various cognitive and behavioral aspects of the test-taking experience. To explore various applications of RTs, two crucial items need to be addressed in advance: (a) developing suitable RT models that accurately capture main characteristics of the data and (b) finding flexible and efficient estimation methods for determining model parameters.
Numerous modeling techniques have emerged in the past few years for fitting RT data. One commonly used approach is a fully parametric framework that relies on specific distributional assumptions (e.g., Weibull distribution, Rouder et al., 2003; log-normal distribution, van der Linden, 2006; etc.). One example is the diffusion models, which are widely employed to explain the underlying decision-making processes (Ratcliff et al., 2016; Shinn et al., 2020; Voss et al., 2013). This model includes a drift rate, decision threshold, and non-decision component to represent the process from which a decision is reached. Although this model can reveal the unobservable decision process while considering the speed-accuracy tradeoff that implicitly influences such a process, it operates under a one-process assumption. The strong distributional assumptions limit the flexibility and applicability of the models, potentially leading to inaccurate statistical inferences if the data does not conform to the presumed distribution. Consequently, there is a growing need for a more generalized model that does not hinge on specific distribution assumptions. One promising candidate is the Cox proportional hazards latent trait (PHLT) model (Kang, 2017; Loeys et al., 2014; Ranger & Kuhn, 2012, 2013; Ranger & Ortner, 2012, 2013; Wang et al., 2013), which has been shown to satisfy these requirements.
Despite the flexibility of Cox PHLT models, their utilization in fitting RT data remains relatively limited among practitioners when compared to fully parametric models. This can largely be attributed to the intricacies involved in estimating parameters when random effects are incorporated into the model. In fact, several scholars have already conducted extensive work on the parameter estimation methods for this model. For instance, Douglas et al. (1999) suggested an estimation method based on discrete RTs, enabling the application of standard estimation techniques within the context of the generalized linear model framework. Nevertheless, this approach necessitates arbitrary decisions regarding the categorization thresholds for RTs and might lead to reduced efficiency due to converting the originally continuous RTs into discrete values. Ranger and Ortner (2012) estimated the PHLT model for continuous RTs by maximizing the profile likelihood function in combination with the expectation-maximization (EM; Dempster et al., 1977) algorithm. Their simulations demonstrated that the profile likelihood estimation surpassed the estimator relying on categorized RTs, particularly under ideal estimation conditions in the absence of outliers. Still, all estimators based on EM algorithm may encounter an issue: they are sensitive to the choice of initial values for the parameters. If the starting point is far from the true parameter values, the algorithm may converge to a local maximum instead of the global maximum of the likelihood function (Ranger & Kuhn, 2012). Furthermore, profile likelihood estimators involve computationally demanding processes, as they necessitate the use of numerical methods or Monte Carlo simulation for approximating integrals (Kang, 2017). Ranger and Ortner (2013) introduced a computationally more efficient estimation strategy based on the rank correlation matrix of Kendall’s
Parallel to likelihood-based inference methods, Bayesian estimation techniques using Markov chain Monte Carlo (MCMC) sampling also offer a viable option for inferring PHLT model parameters. However, due to the need for choosing appropriate priors and lack of easy-to-use Bayesian packages that simultaneously handle non-parametric baseline hazard, educational and psychological researchers have been less inclined to adopt Bayesian estimation strategies. Wang et al. (2013) proposed a two-stage estimation method that applies the Metropolis–Hastings (MH; Chib & Greenberg, 1995; Hastings, 1970; Metropolis et al., 1953; Tierney, 1994) algorithm to the partial likelihood function containing speed parameters, thereby obtaining the Bayesian estimates for the speed parameters. In fact, Wang et al. (2013) did not rely on a fully Bayesian approach to estimate all parameters in the PHLT model. Instead, the time discrimination parameters were inferred using partial likelihood (hence bypassing the need to specify the non-parametric baseline hazard), whereas the cumulative hazard functions were obtained through Breslow estimation with B-splines (Breslow, 1972). Loeys et al. (2014) conducted parameter estimation for proportional hazard models with crossed random effects using the adaptive rejection for Gibbs sampling algorithm (Gilks & Wild, 1992) available in the OpenBUGS software (Spiegelhalter et al., 2012).
In this study, we propose a slice sampling algorithm (SSA; Bishop, 2006; Lu, Zhang, & Tao, 2018; Maris & Maris, 2002; Neal, 2003) within a fully Bayesian framework for estimating the joint model of item responses and PHLT models. Data augmentation refers to adding auxiliary variables in a latent variable model (Fox, 2010) to facilitate model estimation. SSA originates from the fact that one can obtain samples from a distribution by uniformly sampling from the area beneath its density function plot. A Markov chain converging to this uniform distribution can be devised by alternately executing uniform sampling in a vertical direction and uniform sampling from a horizontal “slice” determined by the present vertical position, or more broadly, with an update that preserves the uniform distribution over this slice intact. The intuition and the technical details of implementing the slice algorithm can be found in Section 3.1. Through simulation studies and real data analysis, we have thoroughly discussed the unique and attractive features of SSA. First, by employing data augmentation technique, the parameters in the joint hierarchical model can be easily drawn from closed-form full conditional posterior distributions, thereby facilitating fast computation.
Second, within the traditional Bayesian estimation framework, prior specifications and prior sensitivity play crucial roles in Bayesian inferences (Chen et al., 2000). In practice, the SSA is not sensitive to the specification of prior distribution, regardless of whether it is informative or non-informative. It can still yield satisfactory results even with improper or mis-specified priors, as long as the chosen prior distribution encompasses the potential range of parameter values (Zhang et al., 2021). This is an advantage over traditional Gibbs sampling algorithm (Albert, 1992; Béguin & Glas, 2001; Geman & Geman, 1984; Tanner & Wong, 1987) that based on conjugate prior distributions. For instance, the prior distributions for the discrimination parameter can be chosen from exponential distribution, gamma distribution, etc. Additionally, regarding the MH algorithm, Culpepper (2016) points out that the MH algorithm encounters difficulties when sampling parameters subject to monotonicity or truncated interval constraints. Therefore, ensuring the accuracy of parameter estimation can only be achieved by employing strong informative prior distributions that avoid violating these restriction conditions. These issues can be effectively avoided by SSA.
Third, in terms of sampling efficiency, the SSA inherits the advantages of the Gibbs sampling algorithm in this regard. Both algorithms accept samples drawn directly from the full conditional posterior distribution with a probability of one. Zhang et al. (2021) provided theory to support that the SSA is more efficient than a specific independence MH chain. This also makes intuitive sense because the MH algorithm only accepts posterior samples with a certain probability less than 1. As a result, the effective sample size reduces, and the time required for Markov chain iterations in the MH algorithm is much longer compared to the time needed by SSA. Furthermore, as noted by Patz and Junker (1999), when employing the MH algorithm to simultaneously estimate item parameters for a two-parameter logistic item response theory (IRT) model, the acceptance probability tends to decrease to approximately 25%. Consequently, the sampling efficiency of the MH algorithm is substantially diminished. Recently, Hamiltonian Monte Carlo (HMC; e.g., Betancourt, 2017; Neal, 2011) extends the MH algorithm by leveraging Hamiltonian dynamics to generate precise proposal values. Therefore, it is computationally more efficient than the MH algorithm. However, a drawback of HMC lies in its sensitivity to hyperparameters, which require careful tuning for optimal performance. Besides, although HMC forms the backbone of standard libraries for Bayesian inference, such as Stan (Carpenter et al., 2017) and PyMC (Patil et al., 2010), it is difficult to implement various model identification constraints for customized uses. On the other hand, differential evolution Markov chain Monte Carlo (DE-MCMC; e.g., Braak, 2006; Vrugt et al., 2009) is another statistical method that merges differential evolution, a population-based optimization algorithm, with MCMC techniques. DE-MCMC requires tuning additional parameters, such as the scaling factor for differential evolution and the crossover probability. Despite the growing popularity of HMC and DE-MCMC methods, considering the complexity of the hierarchical piecewise constant PHLT model and the correlation between the person parameters, direct implementation of these algorithms may encounter difficulties. Conversely, the SSA presents several advantages that make it particularly suitable for complex hierarchical models. SSA does not require gradient information, which simplifies its application to models where calculating gradients is difficult or computationally expensive. It can handle constraints on parameters more naturally, as it works well with bounded parameter spaces and can incorporate prior information effectively. Additionally, SSA is less sensitive to the choice of hyperparameters, as it adapts to the local structure of the target distribution, making it more robust in practice.
Fourth, when estimating the non-parametric hazard function in PHLT model, our approach of piecewise constant baseline hazard is more straightforward to implement and requires less statistical computing knowledge compared to the direct estimation of the cumulative baseline hazard by Wang et al. (2013) and Loeys et al. (2014). The specific implementation involves partitioning the continuous-time axis into finite segments, assigning all RTs to distinct finite segments, and constraining the baseline hazard to be the same within each refined segment while allowing it to vary between segments. When employing the SSA to estimate the piecewise constant baseline hazard, traditional gamma posterior distribution sampling can be used. In contrast, Wang et al. (2013) applied the Breslow estimator (Breslow, 1972) with B-Spline to the cumulative baseline hazard under the complete data likelihood. Moreover, Loeys et al. (2014) also directly estimated the cumulative hazard function using a grouped likelihood function combined with a conjugate gamma prior distribution.
The rest of the article is organized as follows. In Section 2, we discuss the joint hierarchical model that consists of IRT model and the piecewise constant PHLT model, with further explication of the identifiability of the joint hierarchical model. Section 3 provides the new computational strategy based on auxiliary variables to tackle computational challenges for the models. Bayesian model comparison criteria are discussed in Section 4. In Section 5, multiple simulation studies are carried out to evaluate parameter recovery performance using the SSA method and to assess model fitting using the information criteria. Moreover, a real data analysis based on Program for International Student Assessment (PISA) data is presented in Section 6. In Section 7, we briefly discuss the work conducted in this research and address the limitations that exist in the methodology.
2. Models and Model Identification
In this study, we continue to utilize the hierarchical modeling methodology suggested by van der Linden (2007), which stands as a crucial advancement for examining the relationship between speed and accuracy. Within this framework, individual responses and RTs are modeled separately at the first level, while a correlation structure is implemented at the second level to account for the dependence between person parameters.
2.1 First-Level Measurement Models
2.1.1 Item Response Theory Model
In the item response model, we employ the two-parameter logistic model (2PLM; Birnbaum, 1968) as follows:
where
2.1.2 Piecewise Constant PHLT Model
The Cox proportional hazards (PH) model (Cox, 1972) has been extensively applied in educational and psychological measurement research (Ranger & Kuhn, 2012, 2013; Ranger & Ortner, 2012, 2013; Wang et al., 2013). In these models, the hazard function, denoted as
In addition to the baseline hazard function, the traditional Cox PH model integrates two factors that influence the RTs. One factor is the person-specific speed parameter, while the other is the time discrimination parameter tied to the test item. Assuming that
where
Subsequently, we consider a piecewise constant baseline hazard function for
By defining
where
2.2 Second-Level Hierarchical Structure Model
We employ van der Linden’s (2007) population model to illustrate the relationship between the latent ability
and the covariance matrix
2.3. Model Identification
To ensure model identifiability, this research incorporates several constraints. Within the 2PLM framework, we enforce constraints on the ability’s population mean and variance, specifically, setting
3. Bayesian Estimation Method Via Data Augmentation Technique
3.1 Data Augmentation Technique
Data augmentation refers to adding auxiliary variables to assist in model estimation while the auxiliary variables themselves are not of interest. In this study, the item response and RT data constitute incomplete data (i.e., unknown latent θ and τ); however, when combined with the augmented data, a complete dataset is produced. Regarding the joint likelihood function, which includes both observed and augmented data, once the augmented data has been integrated out, a marginal distribution emerges, constituting a likelihood function dependent only on the observed data. Within the Bayesian framework, the augmented data approach facilitates acquiring realizations from intricate distributions by augmenting the variables of interest with one or more additional variables, making the full conditionals more tractable and easier to sample. The development of sampling algorithms through the incorporation of augmented data has garnered considerable attention, as it has led to both straightforward and efficient algorithms (Higdon 1998; Meng & van Dyk 1999; Neal, 2003; Tanner & Wong, 1987). Specifically, let
The data augmentation process necessitates that the distribution of observed data be implied by the augmented data distribution. Data augmentation technique is primarily introduced for computational purposes and should not alter the analysis model. When directly sampling from
Next, we illustrate the SSA with a univariate example. Let
where
Therefore, at the
Figure 1 shows the two-step update process of the slice algorithm for a univariate target density

Two-step update process of the slice sampling algorithm for a univariate target density
3.2 Slice-Sampling Algorithm for 2PLM
The fully Gibbs sampling method was developed exclusively for the two-parameter normal ogive model (Albert, 1992), whereas the MH within Gibbs algorithm was used for 2PLM. Unlike the MH algorithm, Maris and Maris (2002) have employed the Slice sampler to estimate the 2PLM. In the following, we provide a brief introduction to the implementation procedure of using SSA for 2PLM. For each item response variable, we introduce two mutually independent augmented variables,
where the
where
Next, we update the difficulty parameters. Based on the two inequalities
Similarly, for
Let
In Equation 9
To update the discrimination parameter
In Equation 10
Finally, we update the ability parameter in the IRT model. Because the relationship between latent ability and speed parameter is constructed through a bivariate normal distribution,
where
In Equation 11
3.3 Slice-Sampling Algorithm for PCPHLTM
Unlike the previous Bayesian estimation of IRT model parameters using augmented data conforming to a uniform distribution, implementing Bayesian estimation for the complex PCPHLTM requires the introduction of augmented data following a truncated exponential distribution. To show this, we provide a mathematical representation for integral calculation:
where
Next, we provide the specific Bayesian estimation process for the PCPHLTM. Assuming that the priors of
where
Given the RT variable
Due to the relationships between the latent ability and speed, the conditional prior distribution of
where
Based on the constraint condition of
Hence,
Assuming that the time discrimination parameter
Since under the conditions of
Specifically,
To update the piecewise constant baseline hazard function
Therefore, the full conditional posterior distribution of
To update the correlation coefficient between
Otherwise, the value at the preceding iteration is retained, that is,
4. Bayesian Model Assessment
In this paper, we consider using the deviance information criterion (DIC; Spiegelhalter et al., 2002), the logarithm of the pseudomarginal likelihood (LPML; Geisser & Eddy, 1979; Ibrahim et al., 2001), the widely applicable information criterion (WAIC; Watanabe, 2010), and pareto smoothed importance sampling leave-one-out cross-validation (PSIS-LOO; Vehtari et al., 2017) to evaluate model fit. It is important to note that these four criteria rely on the log-likelihood functions evaluated at the posterior samples of the model parameters. Vehtari et al. (2017) created an R package called loo to calculate WAIC and LOO using the log-likelihood matrix output from the slice sampler. Please see Watanabe (2010) and Vehtari et al. (2017) for more detailed information and definitions of WAIC and LOO. A smaller WAIC (or LOO) value indicates a better-fitting model. Next, we will provide the specific calculation process for DIC and LPML. Let
where
The logarithm of the joint likelihood function in Equation 20 evaluated at
As the joint log-likelihoods for the responses and RTs,
where
In Equation 22,
Defining
It is important to note that the maximum value adjustment used in
A model with a higher LPML provides a better fit to the data.
5. Simulation Study
5.1 Assessing the Performance of SSA Under Various Simulation Conditions
5.1.1 Simulation Designs
In this simulation study, we consider three factors to establish distinct testing scenarios. The first factor is the sample size, which is varied at two levels:
5.1.2 True Values and Prior Distributions
The true parameter values for the item response and RT models are determined as follows: The discrimination parameters
For the prior distributions, the discrimination parameters
5.1.3 Convergence Diagnosis
To execute the MCMC sampling algorithm, chains with a length of 30,000 are selected. Convergence of the SSA is assessed by monitoring the trace plots, please see Figure S1 (available in the online version of this article). An alternative approach involves employing the Gelman Rubin method (Gelman & Rubin, 1992) to verify the convergence of the parameters of interest. For each simulation condition, 200 replications are examined. The potential scale reduction factor
5.1.4 Accuracy of Parameter Estimation
To assess the recovery of item and correlation coefficient parameters across eight simulated conditions, the average bias and root mean squared error (RMSE) are computed. As seen in Table 1, the average bias and RMSE of item parameters decrease when the number of examinees increases. Furthermore, for the same number of examinees and items, employing different Weibull cumulative hazard functions to generate time data has a negligible impact on the accuracy of item parameters. The average bias of the time discrimination parameter is higher than the discrimination and difficulty parameters, while the average RMSE of the time discrimination parameter exhibits a lower value in comparison to the discrimination and difficulty parameters. Unsurprisingly, as sample size increases, the accuracy of the time discrimination parameter estimation evidently improves. In summary, under the eight simulated conditions with varying numbers of examinees, test lengths, and cumulative hazard functions, the estimation of this SSA proves to be accurate. In fact, we also considered several other sample size conditions:
Average Bias and RMSE for Item and Correlation Coefficient Estimates, as Well as the Average Wall-Clock Time of the SSA, Based on Eight Simulated Conditions in Simulation Study 1
Note. RMSE = root mean squared error; SSA = slice sampling algorithm.
5.2 Prior Flexibility and Sensitivity for the SSA
The aim of this simulation is to demonstrate the robustness of SSA to the selection of prior distributions of item parameters and to examine the sensitivity of the SSA with different priors.
5.2.1 Simulation Designs
In this simulation study, the number of examinees and items is set at 1,000 and 40, respectively. The 2PLM and PCPHLTM with five pieces are employed to generate item response and RT data, respectively. Two distinct cumulative hazard functions are considered, Weibull
(i)
(ii)
(iii)
(iv)
The setting of other parameter priors and true values remains the same as in simulation study 5.1. The SSA iterates 30,000 times, with the first 15,000 iterations discarded as burn-in time. The PSRF values of all model parameters are below 1.2.
5.2.2 Results
The average bias and RMSE for item parameters, based on 200 replications, are displayed in Tables 2 and 3. We can see that the average bias and RMSE for item parameters remain relatively consistent across the four distinct prior distributions. In addition, we also conducted an additional simulation with the sample size of 500 and 40 items. The results consistently demonstrate excellent estimation precision under these four different prior distributions, even with the suggested sample size (i.e., 500). Consequently, the SSA is robust regardless of whether informative priors (i) or non-informative priors (ii), (iii), (iv) are chosen for item parameters. The selection of prior distributions does not result in remarkable bias in the estimation results.
Average Bias and RMSE for the Item Parameter Estimates Using Four Prior Distributions Based on Weibull(1,1) Cumulative Hazard Function
Note. RMSE = root mean squared error.
Average Bias and RMSE for the Item Parameter Estimates Using Four Prior Distributions Based on Weibull(1,3) Cumulative Hazard Function
Note. RMSE = root mean squared error.
5.3 A Comparison Study of the SSA and Adaptive Rejection Sampling for Gibbs Algorithm
In this simulation study, the adaptive rejection for Gibbs sampling algorithm (ARGSA; Gilks & Wild, 1992; Loeys et al., 2014) is used as a benchmark to assess and compare the accuracy of parameter estimation with our SSA. We chose ARGSA for several reasons. First, both algorithms are within a fully Bayesian framework. Second, for the complex hierarchical PCPHLTM, the full posterior distributions of all model parameters in the PCPHLTM and 2PL models are all in log-concave form, which aligns perfectly with the requirements of ARGSA. The steps of implementing ARGSA can be found in the online supplement.
5.3.1 Simulation Designs
The number of examinees and items are fixed at 500 and 20, respectively. Two different cumulative hazard functions are considered, Weibull
Average Bias and RMSE for the Item Parameter Estimates Using SSA and ARGSA Algorithms
Note. ARGSA = adaptive rejection for Gibbs sampling algorithm; RMSE = root mean squared error; SSA = slice sampling algorithm.
5.3.2 Results
Overall, the average Bias and RMSE of item and correlation coefficient parameters remain relatively consistent for the two distinct cumulative hazard functions. This indicates that varying cumulative hazard functions do not improve the accuracy of parameter estimation for both algorithms. It is observed that the average Bias and RMSE of item and correlation coefficient parameters are essentially the same for the SSA and ARGSA. Due to the similar conclusion for the 500 sample size condition and space limit, we did not show the detailed results in this paper. However, the wall-clock time of ARGSA is roughly twice that of SSA under the conditions of 500 examinees and 20 items. In the case of 1,000 examinees, ARGSA’s wall-clock time is more than three times that of SSA.
5.4 Bayesian Model Assessment
In this simulation study, we evaluate the model fit using four Bayesian model assessment criteria. Because in PCPHLTM, the selection of
5.4.1 Simulation Designs
In this simulation, the PCPHLTM with varying pieces
The Results of Bayesian Model Assessment Based on the Cumulative Hazard Function of a Weibull Distribution With Shape Parameter α = 1 and Scale Parameter λ = 1
Note. 2PLM = two-parameter logistic model; DIC = deviance information criterion; LOO = leave-one-out; LPML = logarithm of the pseudomarginal likelihood; PCPHLTM = piecewise constant proportional hazards latent trait; WAIC = widely applicable information criterion.The boldfaced values show the minimum values of each information criterion across the three fitted models under each true model, representing the best-fitting model in each case.
The Results of Bayesian Model Assessment Based on the Cumulative Hazard Function of a Weibull Distribution With Shape Parameter α = 3 and Scale Parameter λ = 1
Note. 2PLM = two-parameter logistic model; DIC = deviance information criterion; LOO = leave-one-out; LPML = logarithm of the pseudomarginal likelihood; PCPHLTM = piecewise constant proportional hazards latent trait; WAIC = widely applicable information criterion.The boldfaced values show the minimum values of each information criterion across the three fitted models under each true model, representing the best-fitting model in each case.
5.4.2 Results
From Tables 5 and 6, it is observed that, unsurprisingly, the fitted model performs best when it is the same as the true model. Meanwhile, Figure 2 shows the boxplots illustrating the DIC and LPML differences between the true and fitted models based on the

The boxplots of the DIC and LPML differences for three assessment models, when the cumulative hazard function of a Weibull distribution with shape parameter

The boxplots of the WAIC and LOO differences for three assessment models, when the cumulative hazard function of a Weibull distribution with shape parameter
An additional simulation study was conducted to investigate whether the strength of the correlation between ability and speed in the population distribution of a hierarchical model is beneficial for improving the accuracy of ability parameter estimation. Please see the Supplemental Material (available in the online version of this article).
6. Real Data Analysis
6.1 Data Descriptions
In this example, the 2015 computer-based PISA (OECD, 2017) science data are utilized. Among the numerous participating countries, students from the United States are selected for analysis. The initial sample consists of 658 students, and those with Not Reached (original code 6) or Not Response (original code 6) statuses are excluded, considering them as missing data. The final dataset includes 528 students who answered 16 items, with their respective RTs recorded. All 16 items are evaluated using a dichotomous scoring scale. The descriptive statistics are presented in Table 7. Additionally, Figures 4 and 5 display the frequency histograms of correct rates for the 528 examinees and their corresponding RTs.
The Descriptive Statistics for PISA 2015 Released Computer-Based Sciences Items
Note. Correct rate = proportion of students answering the item correctly; Max RT = maximum response time; Med RT = median response time; Min RT = minimum response time; PISA = Program for International Student Assessment.

Frequency histogram of the correct rates for 528 examinees.

Frequency histogram of the response times for 528 examinees.
6.2 Bayesian Model Assessment
In this analysis, the PCPHLTM with varying pieces, denoted as
6.3 Analysis of Item Parameter
The results of estimated item parameters are presented in Table 8. It is observed that all the expected a posteriori (EAP) estimates of item discrimination parameters exceed 0.8, implying that these items effectively differentiate between varying ability levels. The top three items with the highest discrimination are DR442Q05C, CR442Q07S, and DR442Q03C, with values of 2.304, 1.749, and 1.666, respectively. Furthermore, EAP estimates for 11 difficulty parameters are below 0, indicating that these 11 items are somewhat easier than the remaining five. The five most difficult items are item 8(DR442Q06C), 7(DR442Q05C), 9(CR442Q07S), 12(CR101Q01S), and 16(CR101Q05S), with EAP estimates of 1.234, 0.931, 0.919, 0.405, and 0.187, respectively. In Table 6, the corresponding correct rates for these five items are 0.231, 0.257, 0.285, 0.436, and 0.487. The most difficult five items exhibit lowest correct rates. All EAP estimates of time discrimination parameters are less than or equal to 0.475. The three items possessing the highest time discrimination are CR101Q01S, DR442Q03C, and CR101Q04S, with values of 0.475, 0.343, and 0.313, respectively.
The Estimation Results of Item Parameter for the PISA Data
Note. EAP = expected a posteriori estimation; HPDI = highest probability density interval; MCSE = Monte Carlo standard error; PARM = parameter; SD = standard deviation.
6.4. Analysis of Person Parameters
Figure 6 shows the histograms of the posterior estimates of ability and speed parameters. A considerable number of ability estimates lie close to zero. The number of examinees with high ability (estimations between 1 and 2) surpasses that of examinees with low ability (estimations between −2 and −1). The histogram of the posterior ability parameter estimates aligns with the histogram of the correct rate (Figure 3), that is, higher correct rates correspond to increased ability. Likewise, speed estimates are mostly around zero with slight skew to the right. For some examinees whose speed estimates exceeding 1, it may imply that they adopt a rapid guessing strategy to answer the item, which requires further-in-depth analysis of the item and person. Furthermore, the estimated correlation coefficient between ability and speed

The histograms of the posterior estimates of ability and speed parameters.
7. Conclusions
This study introduces SSA and demonstrates its uses for estimating the hierarchical PCPHLTM. SSA efficiently samples from the joint hierarchical model and forms a Markov chain based on uniform sampling in both vertical and horizontal directions. This paper demonstrates several strengths of SSA. First, SSA is particularly robust to prior distribution specifications, showing satisfactory results even with improper or mis-specified priors, a feature lacking in the conventional Gibbs sampling algorithms. Second, SSA addresses the challenges faced by the MH algorithm as it can effectively sample parameters while conforming to monotonicity or truncated interval constraints, without the need for strong informative priors. Overall, SSA presents a promising contribution to the general Bayesian estimation family, showcasing practical applicability in psychometrics.
As discussed in Neal (2003), slice samplers have some limitations. For example, it may encounter high autocorrelation and slow mixing issues in high-dimensional or complex distributions. These problems arise because, like other MCMC methods, slice samplers can “stuck” in certain regions of the parameter space, especially when high-probability regions of the distribution are separated by low-probability areas. Compared to the HMC algorithm (S. Brooks et al., 2011) implemented in Stan (Stan Development Team, 2017), SSA typically exhibits lower effective sample size (ESS) under the same simulation conditions. This is because SSA often fails to avoid stagnation in the parameter space when exploring high-dimensional spaces, leading to a significantly lower ESS than the HMC method. The HMC algorithm leverages gradient information to explore the parameter space with greater precision, which in turn helps reduce autocorrelation and improves sampling efficiency. To reduce autocorrelation of the SSA, several strategies can be employed. For example, adaptive step size adjustment can improve chain exploration efficiency; or expanding the slice width through a “stepping out” process and using a shrinkage process to adjust sample positions (Neal, 2003). Additionally, future research could explore hybrid approaches combining slice sampling with other MCMC methods, such as adaptive slice sampling (Neal, 2003), to improve effective ESS while maintaining computational efficiency. Furthermore, for high-dimensional parameter spaces, gradient-assisted slice sampling (Heiner et al., 2024) could be investigated to improve parameter space exploration.
Additionally, it is important to acknowledge several limitations associated with using DIC for Bayesian model selection. First, DIC is a reliable asymptotic approximation only if the joint posterior distribution is close to a multivariate Gaussian. Its pre-asymptotic behavior can be poor, and there is no clear-cut way to diagnose this in practice. Second, DIC is not invariant to re-parameterizations, which can be problematic for models with numerous possible instantiations. Third, DIC is based on a point estimate (the posterior mean) and does not take into account other aspects of the full joint posterior, which is one of the main reasons we utilize Bayesian analysis in the first place. DIC lacks an inherent method for quantifying approximation error and does not provide a way to determine when its assumptions fail, unlike more established methods such as PSIS-LOO approximations. Therefore, when using DIC, it is crucial to be aware of these issues and consider them carefully in the analysis.
In terms of model construction, a drawback of the PCPHLTM is the subjectivity involved in choosing the number of segments for the piecewise constant baseline hazard function. There is no universal rule for determining the optimal number of segments, and different choices can lead to different hazard function estimates, potentially affecting the overall model fit and the interpretation of the results. In fact, an inappropriate choice of the number of segments can lead to overfitting or underfitting the data. Overfitting occurs when the model becomes overly complex, fitting the noise in the data rather than the underlying structure. In contrast, underfitting happens when the model is too simplistic, failing to capture the true underlying structure of the data. Both scenarios can result in poor predictive performance and misleading inferences. To address these issues, as demonstrated in the simulation study 5.3 and real data, we employ two Bayesian model evaluation criteria to search for the relatively optimal fitting model among a finite set of segmentations options. Moreover, to better describe the characteristics of RT distributions, many researchers have adopted item-specific baseline hazard functions, meaning that different items have distinct baseline hazard functions, as exemplified by Wang et al. (2013). However, in PCPHLTM, to simplify computation and avoid estimating constant baseline hazard parameters for different segments under various items, we have opted for an approach where all items share a common baseline hazard function. This method serves to elucidate the specific Bayesian implementation process for readers while avoiding more complex computational procedures. Nonetheless, it is worth noting that SSA is fully capable of estimating distinct baseline hazard functions for different items. Furthermore, based on our simulation results, we found that because the PCPHLTM contains a large number of parameters, it is challenging to achieve high model recovery accuracy with sample sizes. This is understandable, and hence we recommend a minimum sample size of 500 for the hierarchical PCPHLTM. To guarantee accurate parameter estimation, it is recommended that the sample size be a minimum of 500 for the hierarchical PCPHLTM. Consequently, our algorithm and model find more suitable application in large-scale assessments involving a minimum of 500 participants, thereby elucidating the applicability of our algorithm and model.
Our future studies include developing dedicated software packages to make the new algorithm broadly accessible. We will create a standalone R package that integrates with C++ or Fortran software to maximize its performance. Additionally, we plan to extend the slice algorithm for joint models between polytomous IRT models (e.g., graded response model [GRM] model; generalized partial credit model [GPCM] model) and the PCPHLTM, joint multilevel models considering the individual and group covariates, or longitudinal models that also include the PCPHLTM.
Supplemental Material
sj-pdf-1-jeb-10.3102_10769986251343872 – Supplemental material for Flexible Bayesian Slice-Sampling Algorithms: An Illustration Using the Hierarchical Piecewise Constant Proportional Hazards Latent Trait Model
Supplemental material, sj-pdf-1-jeb-10.3102_10769986251343872 for Flexible Bayesian Slice-Sampling Algorithms: An Illustration Using the Hierarchical Piecewise Constant Proportional Hazards Latent Trait Model by Jiwei Zhang, Chun Wang, Jing Lu and Yuzheng Cui in Journal of Educational and Behavioral Statistics
Footnotes
Declaration of Conflicting Interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This research was supported by the general projects of National Social Science Fund of China on Statistics (Grant Number 23BTJ067).
Data Availability Statement
Code Availability Statement
The R code of this paper can be found in the Supplemental Material.
Authors
References
Supplementary Material
Please find the following supplemental material available below.
For Open Access articles published under a Creative Commons License, all supplemental material carries the same license as the article it is associated with.
For non-Open Access articles published, all supplemental material carries a non-exclusive license, and permission requests for re-use of supplemental material or any part of supplemental material shall be sent directly to the copyright owner as specified in the copyright notice associated with the article.
