All Projects → m-clark → Miscellaneous R Code

m-clark / Miscellaneous R Code

Code that might be useful to others for learning/demonstration purposes, specifically along the lines of modeling and various algorithms. Now almost entirely superseded by the models-by-example repo.

Programming Languages

python
139335 projects - #7 most used programming language
r
7636 projects
matlab
3953 projects
julia
2034 projects

Projects that are alternatives of or similar to Miscellaneous R Code

models-by-example
By-hand code for models and algorithms. An update to the 'Miscellaneous-R-Code' repo.
Stars: ✭ 43 (-70.55%)
Mutual labels:  pca, bayesian, gaussian-processes
cmdstanr
CmdStanR: the R interface to CmdStan
Stars: ✭ 82 (-43.84%)
Mutual labels:  bayesian, stan
Modelselection
Tutorial on model assessment, model selection and inference after model selection
Stars: ✭ 139 (-4.79%)
Mutual labels:  bayesian, stan
Orbit
A Python package for Bayesian forecasting with object-oriented design and probabilistic models under the hood.
Stars: ✭ 346 (+136.99%)
Mutual labels:  bayesian, stan
Universal Head 3DMM
This is a Project Page of 'Towards a complete 3D morphable model of the human head'
Stars: ✭ 138 (-5.48%)
Mutual labels:  pca, gaussian-processes
lgpr
R-package for interpretable nonparametric modeling of longitudinal data using additive Gaussian processes. Contains functionality for inferring covariate effects and assessing covariate relevances. Various models can be specified using a convenient formula syntax.
Stars: ✭ 22 (-84.93%)
Mutual labels:  stan, gaussian-processes
Rstanarm
rstanarm R package for Bayesian applied regression modeling
Stars: ✭ 285 (+95.21%)
Mutual labels:  bayesian, stan
TrendinessOfTrends
The Trendiness of Trends
Stars: ✭ 14 (-90.41%)
Mutual labels:  stan, gaussian-processes
Bda py demos
Bayesian Data Analysis demos for Python
Stars: ✭ 781 (+434.93%)
Mutual labels:  bayesian, stan
Epinow2
Estimate Realtime Case Counts and Time-varying Epidemiological Parameters
Stars: ✭ 36 (-75.34%)
Mutual labels:  gaussian-processes, stan
Matlabstan
Matlab interface to Stan, a package for Bayesian inference
Stars: ✭ 59 (-59.59%)
Mutual labels:  bayesian, stan
stan4bart
Uses Stan sampler and math library to semiparametrically fit linear and multilevel models with additive Bayesian Additive Regression Tree (BART) components.
Stars: ✭ 13 (-91.1%)
Mutual labels:  bayesian, stan
Ml code
A repository for recording the machine learning code
Stars: ✭ 75 (-48.63%)
Mutual labels:  bayesian, pca
mnist-challenge
My solution to TUM's Machine Learning MNIST challenge 2016-2017 [winner]
Stars: ✭ 68 (-53.42%)
Mutual labels:  pca, gaussian-processes
stantargets
Reproducible Bayesian data analysis pipelines with targets and cmdstanr
Stars: ✭ 31 (-78.77%)
Mutual labels:  bayesian, stan
Bayesplot
bayesplot R package for plotting Bayesian models
Stars: ✭ 276 (+89.04%)
Mutual labels:  bayesian, stan
bayesian
Bindings for Bayesian TidyModels
Stars: ✭ 33 (-77.4%)
Mutual labels:  bayesian, stan
walker
Bayesian Generalized Linear Models with Time-Varying Coefficients
Stars: ✭ 38 (-73.97%)
Mutual labels:  bayesian, stan
Bda r demos
Bayesian Data Analysis demos for R
Stars: ✭ 409 (+180.14%)
Mutual labels:  bayesian, stan
Projpred
Projection predictive variable selection
Stars: ✭ 76 (-47.95%)
Mutual labels:  bayesian, stan

Lifecycle Status

Miscellaneous (mostly) R Code

NOTE: Many of the models and algorithms in this REPO have been updated and now live in a a more organized document. Most of the code that carries over (the bulk of the files in /ModelFitting) has been upgraded, so refer to the document instead of these files, even if they have been relatively recently revised. Though I started updating these initially, all subsequent work went to the document, so it should now be your point of reference.

However, only a handful of Bayesian demos are going to be included in that document, as the Stan code is pretty dated at this point, and most of the functionality demonstrated now exists in rstanarm/brms, whose functionality allows one to inspect the model code. I will still likely transfer some that may be more unique/useful to the document.

The document still has some kinks to work out and some additions incoming, but can be found here. The updated code there will be more 'tidy' and conform to more widely used coding standards, which was the goal of the code here anyway. More can be found at my website.


This is a place for miscellaneous R and other code I've put together for clients, co-workers or myself for learning and demonstration purposes. The attempt is made to put together some well-commented and/or conceptually clear code from scratch, though most functionality is readily available in any number of well-developed R packages. Typically, examples are provided using such packages for comparison of results. I would say most of these are geared toward intermediate to advanced folks that want to dig a little deeper into the models and underlying algorithms.

I also have documents of varying depth on a range of modeling and programming topics that can be found at my website.

Model Fitting

Code related to fitting of various models.

standard linear regression, standard logistic regression, penalized regression, lasso regression, ridge regression, newton and IRLS, nelder-mead (Python) (R), gradient descent (stochastic), one factor random effects (R) (Julia) (Matlab), two factor random effects (R) (Julia) (Matlab), mixed model via ML, bivariate probit, heckman selection, tobit, naive bayes, multinomial regression, ordinal regression, quantile regression, marginal structural model, cubic spline, hurdle poisson, hurdle negbin, zero-inflated poisson, zero-inflated negbin, Cox survival, confirmatory factor analysis, Markov model, hidden Markov model (R) (Python), EM mixture univariate, EM mixture multivariate, EM probit, EM pca, EM probabilistic pca (with missing), EM state space model, Gaussian Process noisy, Gaussian Process noise-free, reproducing kernel hilbert space regression, extreme learning machine, Chinese restaurant process, Indian buffet process, One-line models (an exercise), ...

Bayesian (mostly with Stan/rstan)

BEST t-test, linear regression (Compare with BUGS version, JAGS), mixed model, mixed model with correlated random effects, beta regression, mixed model with beta response (Stan) (JAGS), mixture model, topic model, multinomial models, multilevel mediation, variational bayes regression, gaussian process, stochastic volatility, horseshoe prior, item response theory, ...

SC and TR

This part of the repository is deprecated, but used to be a section of 'short courses' and 'technical reports'. See the Workshops or docs repositories instead, or go to the workshops and documents sections of the website where you can see finished products ...

Other

Random shenanigans.

FizzBuzz test (R) (julia) (Python), Reverse a string recursively (R) (Python), Recursive Word Wrap (R) (Python), calculate compound interest recursively, get US Congress roll call data, Scrape xkcd (R) (Python), Shakespearean Insulter, ggplot2 theme, spurious correlation with ratios, R matrix speedups, ...

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].