rbartpackages.dbarts.Ranef

class rbartpackages.dbarts.Ranef(values: Float64[ndarray, 'g'] | Float64[ndarray, 'ndpost g'] | Float64[ndarray, 'nchain ndpost g'], levels: String[ndarray, 'g'])[source]

Type of the type='ranef' return values of rbart_vi’s methods.

This is a tuple, so you can unpack it as values, levels = .... It carries group names along with an array, providing a Python-side equivalent to R’s colnames.

values: Float64[ndarray, 'g'] | Float64[ndarray, 'ndpost g'] | Float64[ndarray, 'nchain ndpost g']

The random effects, with the g groups on the last axis.

levels: String[ndarray, 'g']

The group names in the order of the group axis ‘g’ in values.