RandomEffectsDataset | R Documentation |
A dataset consists of three matrices / vectors: group labels, bases, and variance weights. Variance weights are optional.
data_ptr
External pointer to a C++ RandomEffectsDataset class
new()
Create a new RandomEffectsDataset object.
RandomEffectsDataset$new(group_labels, basis, variance_weights = NULL)
group_labels
Vector of group labels
basis
Matrix of bases used to define the random effects regression (for an intercept-only model, pass an array of ones)
variance_weights
(Optional) Vector of observation-specific variance weights
A new RandomEffectsDataset
object.
num_observations()
Return number of observations in a RandomEffectsDataset
object
RandomEffectsDataset$num_observations()
Observation count
has_group_labels()
Whether or not a dataset has group label indices
RandomEffectsDataset$has_group_labels()
True if group label vector is loaded, false otherwise
has_basis()
Whether or not a dataset has a basis matrix
RandomEffectsDataset$has_basis()
True if basis matrix is loaded, false otherwise
has_variance_weights()
Whether or not a dataset has variance weights
RandomEffectsDataset$has_variance_weights()
True if variance weights are loaded, false otherwise
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.