ws: Integer vector. Indicates which arm was chosen for observations at each time t. Length A, where A is the number of observations. Must not contain NA values.
yobs: Numeric vector. Observed outcomes, length A. Must not contain NA values.
model: List. Contains the parameters of the LinTSModel.
xs: Optional matrix. Covariates of shape [A, p], where p is the number of features, if the LinTSModel is contextual. Default is NULL. Must not contain NA values.
ps: Optional matrix. Probabilities of selecting each arm for each observation, if the LinTSModel is balanced. Default is NULL.
balanced: Logical. Indicates whether to use balanced Thompson Sampling. Default is NULL.
Returns
A list containing the updated parameters of the LinTSModel.