Miscellaneous-R-Code

授权协议 Readme
开发语言
所属分类 应用工具、 科研计算工具
软件类型 开源软件
地区 不详
投 递 者 公瑞
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

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, ...

  • 9. Miscellaneous 9.1 Configuring channel Every Z3.0 device has a primary channel mask configuration (BDB_DEFAULT_PRIMARY_CHANNEL_SET) and a secondary channel mask configuration (BDB_DEFAULT_SECONDARY_

  • ASCII stands for American Standard Code for Information Interchange. It's a 7-bit character code where every single bit represents a unique character. On this webpage you will find 8 bits, 256 charact

  • C语言部分主要集中在两个函数board_init_f和board_init_r,主要是board初始化的前部分(front)及后部分(rear),上一节我们分析了board_init_f函数的实现,这一节我们来看看board_r.c: common/board_r.c void board_init_r(gd_t *new_gd, ulong dest_addr) { ...... for

  • 命令npm install nrm -g安装,nrm 1.2.1报错: [TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined at validateString (internal/validators.js:122:11) at Object.jo

 相关资料
  • Random.guid() Random.guid() 随机生成一个 GUID。 Random.guid() // => "662C63B4-FD43-66F4-3328-C54E3FF0D56E" Random.guid() 的实现参考了 Random.id() Random.id() 随机生成一个 18 位身份证。 Random.id() // => "420000200710091854"

  • File-wide metadata reST has the concept of “field lists”; these are a sequence of fields marked up like this: :fieldname: Field content A field list near the top of a file is parsed by docutils as th

  • Miscellaneous Container Templates (libmct) 是一个 C++ 库,提供了一组类 STL 风格的容器类。当前包含 6 个相关容器,分别是:closed_hash_set, closed_hash_map, linked_hash_*, and forward_hash_*

  • Miscellaneous network utility code. tornado.netutil.bind_sockets(port, address=None, family=0, backlog=128, flags=None, reuse_port=False) Creates listening sockets bound to the given port and address.

  • 以下是各种杂项结构 - 构造 定义 例 (?imnsx-imnsx) 设置或禁用模式中间的不区分大小写等选项。 \bA(?i)b\w +\b匹配“ABA Able Act”中的“ABA”,“Able” (?#comment) 在线评论。 注释在第一个右括号处结束。 \bA(?#匹配以A开头的单词)\ w +\b # [到行尾] X模式评论。 评论从一个未转义的#开始,并继续到该行的结尾。 (?x)