
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Fit statistical (linear) models with fixed and mixed (random) effects in Ruby.
Support for the formula language of the R
package lme4
makes model specification convenient and user friendly. An expanation of the lme4
formula interface can be found in the lme4
vignette, or on stackexchange (example). Types of linear mixed models that can be fit by mixed_models
with the formula interface include:
y ~ x + z + x:z + (x + z + x:z | g)
),y ~ x + (x|g) + (x|h)
),y ~ x + (x|g) + (x|g:h)
).Flexible model specification capabilities with the possibility to pass the random effects covariance structure as a Proc
, when fitting a model from raw madel matrices.
Possibility of singular fits (i.e models with random effects variance equal to zero).
Likelihood ratio test for nested models (Chi squared or bootstrap based).
Many types of hypotheses tests for the fixed and random effects (based on LRT, bootstrap or the Wald Z statistic).
Four types of bootstrap confidence intervals for the fixed effects coefficient estimates, as well as Wald Z confidence intervals. All bootstrap based methods are performed in parallel by default.
Prediction on new data and prediction intervals.
To install the latest stable version:
$ gem install mixed_models
Alternatively, you can add the line gem 'mixed_models'
to your application's Gemfile, and then execute:
$ bundle
Ruby is required in version >=2.0 because keyword arguments are excessively used in mixed_models
.
Fitting a linear mixed model, accessing the estimated parameters, and assessing the quality of the model fit (to some extent)
mixed_models
to real data, which originate from blog posts from various sources in 2010-2012. The analyzed data set is of nontrivial size (~50000x300) and nontrivial structure (redundant variables, missing values, data transformations, etc.).Some other examples in form of Ruby code can be found in the examples folder.
Further examples can be found in several BLOG posts (see below).
Wald p-values and confidence intervals for fixed effects coefficients
Fitting linear mixed models with a user-friendly R-formula-like interface
A rudimentary linear mixed models fit from raw matrices and vectors
The development version of mixed_models
can be installed using the command line:
git clone https://github.com/agisga/mixed_models.git
cd mixed_models/
bundle install
bundle exec rake install
The automatic tests can be run with bundle exec rspec spec
.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that mixed_models demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.