September 2015

Nonlinear constraints with a modified constrOptim

September 7, 2015 | Paolo Pellizzari

I often use constrOptim to quickly solve nonlinear optimization problems. constrOptim works well as a general tool to tackle constrained problems like\[\min_{Ax -b \geq0} f(x)\]  There are many other options and packages for specific problems but constrOptim is likely to be the first choice when little is ... [Read more...]

vtreat up on CRAN!

September 6, 2015 | John Mount

Nina Zumel and I are proud to announce our R vtreat variable treatment library has just been accepted by CRAN! It will take some time for the vtreat package to progress to various CRAN mirrors, but as of now you can install vtreat with the command: install.packages('vtreat', repos=...
[Read more...]

Three New #rstats Twitter Bots To Follow

September 6, 2015 | hrbrmstr

I engage with the Stack[Overflow|Exchange] community quite a bit and was super-happy @treycausey made the Stack Overflow #rstats bot (@StackOverflowR) since I’m also on Twitter alot (mostly hanging out in #rstats these days). However, #rstats questions exist in other Stack watering holes, like the Geographic Information Systems ... [Read more...]

Transforming the breaks to match a scale

September 6, 2015 | Peter's stats stuff - R

Something missing In my last post I developed a new scale transformation for R using the approach and platform from the {ggplot2} and {scales}. I implemented a method proposed in 1980 by John and Draper that does some of the job of a logarithmic transform in reducing the dominance on the ... [Read more...]

Predicting Titanic deaths on Kaggle V: Ranger

September 6, 2015 | Wingfeet

In two previous posts (Predicting Titanic deaths on Kaggle IV: random forest revisited, Predicting Titanic deaths on Kaggle) I was unable to make random forest predict as well as boosting. Hence when I read about an alternative implementation; ranger I took the opportunity to check if with ranger I could ... [Read more...]

Predicting Titanic deaths on Kaggle V: Ranger

September 6, 2015 | Wingfeet

In two previous posts (Predicting Titanic deaths on Kaggle IV: random forest revisited, Predicting Titanic deaths on Kaggle) I was unable to make random forest predict as well as boosting. Hence when I read about an alternative implementation; ranger&n... [Read more...]

Two New Cumulative Sum Functions

September 5, 2015 | fishR Blog

In fisheries analysis it is fairly common to compute the cumulative sum of values in a vector – i.e., all values before and including the current position in the vector. For example, the third value in the cumulative sum would be the sum of the first, second, and third values ... [Read more...]

RcppDE 0.1.4

September 5, 2015 | Thinking inside the box

A second maintenance release 0.1.4 of our RcppDE package, following on the heels of the recent 0.1.3. release arrived on CRAN today. RcppDE is a "port" of DEoptim, a popular package for derivative-free optimisation using differential optimization, to C++. By using RcppArmadillo, the code becomes a lot shorter and more legible. This ... [Read more...]

Clay tablet YBC 7289 with an overlay to emphasize the…

September 5, 2015 | Isomorphismes

Clay tablet YBC 7289 with an overlay to emphasize the markings on its surface. The cuneiform inscriptions demonstrate the derivation of the square root of 2 … in sexagesimal (base-60) via Paul Murrell the tablet has been dated to sometime between 1800 BC and 1600 BC. Little is known of its rediscovery, except that it ... [Read more...]

Minimalist Maps

September 5, 2015 | arthur charpentier

This week, I mentioned a series of maps, on Twitter, some minimalist maps http://t.co/YCNPf3AR9n (poke @visionscarto) pic.twitter.com/Ip9Tylsbkv — Arthur Charpentier (@freakonometrics) 2 Septembre 2015 Friday evening, just before leaving the office to pick-up the kids after their first week back in class, Matthew Champion (...
[Read more...]

NA NA NA NA, Hey Hey Hey, Goodbye

September 5, 2015 | [email protected]

Removing NA’s from a Data Frame in R The Problem Suppose you are doing a method comparison for which some results are above or below the linear range of your assay(s). Generally, these will appear in your spreadsheet (gasp!) program as ( y) or, in the case of our ...
[Read more...]

Analysing longitudinal data: Multilevel growth models (II)

September 5, 2015 | Frederick Ho

This is the third post in the longitudinal data series. Previously, we introduced what longitudinal data is, how we can convert between long and wide format data-sets, and a basic multilevel model for analysis. Apparently, the basic multilevel model is not quite enough to analyse our imaginary randomised controlled trial (...
[Read more...]

Age Comparison Results for Individual Fish

September 4, 2015 | fishR Blog

A FSA user recently asked me if there was a way to see and work with the age comparison results for individual fish. In particular, this user wanted to identify each fish for which the individual CV values from comparing two independent age estimates was greater than 10. It turns out ... [Read more...]

Set Operations in R and Python. Useful!

September 4, 2015 | Andrew Worsley

Set operations are super useful when data cleaning or testing scripts. They are a must have in any analyst’s (data scientist’s/statistician’s/data wizard’s) toolbox. Here is a quick rundown in both R and python. Say we have two vectors x and y… What if we ‘...
[Read more...]

Bootstrap Evaluation of Clusters

September 4, 2015 | Nina Zumel

Illustration from Project Gutenberg The goal of cluster analysis is to group the observations in the data into clusters such that every datum in a cluster is more similar to other datums in the same cluster than it is to datums in other clusters. This is an analysis method of ...
[Read more...]

R animation: great circles 3, final draft

September 4, 2015 | Matt Leonawicz

Here is the final draft of my great circle arcs R animation. I made this back in January shortly after my first two drafts, but am only now getting around to sharing it, which is a typical representation of how seldom I can make time for blogging. But given the ...
[Read more...]

Revolution R Open 3.2.2 now available

September 4, 2015 | David Smith

Revolution R Open, the enhanced open source R distribution from Revolution Analytics and Microsoft, is now available for download. This update brings multi-threaded performance to the latest update to the R engine from the R Core Group, which includes several improvements and bug fixes. Significant amongst these is default support ... [Read more...]

Linear models with weighted observations

September 4, 2015 | Michał

In data analysis it happens sometimes that it is neccesary to use weights. Contexts that come to mind include: Analysis of data from complex surveys, e.g. stratified samples. Sample inclusion probabilities might have been unequal and thus observations from different strata should have different weights. Application of propensity score ... [Read more...]
1 8 9 10 11 12

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)