Package | Ordinal | Multinomial | Partial proportional odds | Scale Effects | Random Effects |
---|---|---|---|---|---|
nnet | no | multinom |
N/A | N/A | No |
MASS | polr |
No | No | No | No |
ordinal | clm /clm2 |
all X's in nominal (may not converge) |
offending X's in nominal |
via scale |
clmm /clmm2 |
VGAM | yes | ? | ? | ? | No |
MCMCglmm | yes | ? | ? | ? | ? |
Mixcat | yes | ? | ? | npmlt |
|
mlogit | ? | mlogit |
N/A | N/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(tidyverse) | |
library(eulerr) | |
library(ggforce) | |
#' Area proportional venn diagrams | |
#' | |
#' This functions uses eulerr::euler to plot area proportional venn diagramms | |
#' but plots it using ggplot2 | |
#' | |
#' @param combinations set relationships as a named numeric vector, matrix, or data.frame(See `eulerr::euler`) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Adapted from https://stackoverflow.com/a/7267364/1036500 by Andrie de Vries | |
# This is it: theme(axis.text.x = element_text(angle = 90, hjust = 1, vjust = 0.5)) | |
library(ggplot2) | |
td <- expand.grid( | |
hjust=c(0, 0.5, 1), | |
vjust=c(0, 0.5, 1), | |
angle=c(0, 45, 90), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias accio=wget | |
alias avadaKedavra='rm -f' | |
alias imperio=sudo | |
alias priorIncantato='echo `history |tail -n2 |head -n1` | sed "s/[0-9]* //"' | |
alias stupefy='sleep 5' | |
alias wingardiumLeviosa=mv | |
alias sonorus='set -v' | |
alias quietus='set +v' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# paralell RF with foreach | |
# careful: no confusion, err.rate, mse and rsq components | |
# (as well as the corresponding components in the test compnent, if exist) | |
rf_parallel <- function(x, y, ntree=500, ncore=4, ...){ | |
require(foreach) | |
require(randomForest) | |
# optional parallel backend | |
if (ncore > 1) { | |
require(doParallel) | |
registerDoParallel(ncore) |