How to download and organize financial data from yahoo finance for several tickers

January 2, 2017
By
How to download and organize financial data from yahoo finance for several tickers

Using package BatchGetSymbols - One of the great things of working in finance is that financial datasets are freely available from sources such as Google and Yahoo Finance. This is an excelent feature for building up to date conte...

Read more »

Script to convert numeric integer data of data frame column into a digit matrix.

January 1, 2017
By
Script to convert numeric integer data of data frame column into a digit matrix.

At some point I found the need to manipulate and analyze each digit of a series of integer values, perform statistics with each of them and in some occasions add zeros at the beginning of each number. So I gave...

Read more »

What is a Linear Trend, by the way?

January 1, 2017
By
What is a Linear Trend, by the way?

I had a very stranger discussion on twitter (yes, another one), about regression curves. I think it started with a tweet based on some xkcd picture (just for fun, because it was New Year’s Day) “don’t trust linear regressions” https://t.co/exUCvyRd1G pic.twitter.com/O6rBJfkULa — Arthur Charpentier (@freakonometrics) 1 janvier 2017 There were comments on that picture, by econometricians, mainly about ‘significant’...

Read more »

Welcome to Data R Value

January 1, 2017
By
Welcome to Data R Value

HelloThank you very much for reading this blog that will be dedicated to everything related to the R programming language and to data science field. I will be publishing scripts, hints, algorithms and many more things. I will also be publishing data...

Read more »

3PL models viewed through the lens of total probability theorem

January 1, 2017
By
3PL models viewed through the lens of total probability theorem

As I currently am the NPM for PISA in Colombia, I must assist to several meetings dealing with the proper implementation of this assessment in my country. Few of them are devoted to the analysis of this kind of data (coming from IRT models). As usual, ...

Read more »

Dan Thompson 2017-01-29 11:29:11

January 1, 2017
By

Summary In this blog post I will show you how to make your own personal assistant (think Siri, Cortana, Alexa) in R, very quickly. This will be done in three steps: Get R to recognise your voice and convert it to text Set up a system which us...

Read more »

Building Shiny App exercises part 4

January 1, 2017
By
Building Shiny App exercises part 4

APPLICATION LAYOUT & REACTIVITY The fourth part of our series is “separated” into two “sub-parts”. In the first one we will start building the skeleton of our application by using tabsetPanel. This is how we will separate the sections of our app and also organize its structure better. In the second part you will learn

Read more »

How to perform PCA on R

January 1, 2017
By
How to perform PCA on R

This is a practical tutorial on performing PCA on R. If you would like to understand how PCA works, please see my plain English explainer here. Reminder: Principal Component Analysis (PCA) is a method used to reduce the number of variables in a dataset. We are using R’s USArrests dataset, a dataset from 1973 showing,

Read more »

My first post!

January 1, 2017
By
My first post!

A little bit about me and this blog - Hello everyone! This is the first (ever) post for a new blog about Finance and R. My name is Marcelo Perlin and my day job is assistant professor of Finance in Federal...

Read more »

convert graphic object to tree object using treeio

January 1, 2017
By
convert graphic object to tree object using treeio

I have splitted ggtree to 2 packages, treeio and ggtree. Now ggtree is mainly focus on visualization and annotation, while treeio focus on parsing and exporting tree files. Here is a welcome message from treeio that you can convert ggtree output to tree object which can be exported as newick or nexus file if you want. Thanks to ggplot2, output...

Read more »

A Theory of Nested Cross Simulation

January 1, 2017
By
A Theory of Nested Cross Simulation

[Reader’s Note. Some of our articles are applied and some of our articles are more theoretical. The following article is more theoretical, and requires fairly formal notation to even work through. However, it should be of interest as it touches on some of the fine points of cross-validation that are quite hard to perceive or … Continue...

Read more »

tidyquant: Bringing Quantitative Financial Analysis to the tidyverse

December 31, 2016
By
tidyquant: Bringing Quantitative Financial Analysis to the tidyverse

My new package, tidyquant, is now available on CRAN. tidyquant integrates the best quantitative resources for collecting and analyzing quantitative data, xts, quantmod and TTR, with the tidy data infrastructure of the tidyverse allowing for seamless in...

Read more »

Our R package roundup

December 31, 2016
By
Our R package roundup

A year in review And yet again, it’s that time of the year when one eats too much and gets in a reflective mood! 2016 is nearly over, and us bloggers here at opiateforthemass.es thought it would be nice to argue endlessly which R package was th...

Read more »

Turning KML into tidy data frames

December 30, 2016
By
Turning KML into tidy data frames

This note briefly introduces the tidykml package, which turns basic KML geometries into tidy data frames that can be visualized with ggplot2. Summary The tidykml package provides a quick way to import data from Google My Maps into R, in a format that makes it easy to manipulate the data and visualize it with ggplot2. Below is...

Read more »

Power BI custom visuals, based on R

December 30, 2016
By
Power BI custom visuals, based on R

You've been able to include user-defined charts using R in Power BI dashboards for a while now, but a recent update to Power BI includes seven new custom charts based on R in the customs visuals gallery. You can see the new chart types by visiting the Power BI Custom Visuals Gallery and clicking on the "R-powered visuals" tab....

Read more »

Fireworks (in R)

December 30, 2016
By
Fireworks (in R)

New Year – a new chapter, new verse, or just the same old story ? Ultimately we write it. The choice is ours. ― Alex Morritt The Analytics Lab and Cmotions wish everybody a happy year. A year full of challenges, new experiences and new knowledge. Github library(ggplot2) rm(list = ls()) # First rocket t1

Read more »

Outlier App: An Interactive Visualization of Outlier Algorithms

December 30, 2016
By
Outlier App: An Interactive Visualization of Outlier Algorithms

I was recently trying various outlier detection algorithms. For me, the best way to understand an algorithm is to tinker with it. I built a shiny app that allows you to play around with various outlier algorithms and wanted to share it with everyone. The shiny app is available on my site, but even better, Related Post

Read more »

Sparse matrices, k-means clustering, topic modelling with posts on the 2004 US Presidential election

December 30, 2016
By
Sparse matrices, k-means clustering, topic modelling with posts on the 2004 US Presidential election

Daily Kos bags of words from the time of the 2004 Presidential election This is a bit of a rambly blog entry today. My original motivation was to just explore moving data around from R into the H2O machine learning software. While successful on this,...

Read more »

dotplot for GSEA result

December 29, 2016
By
dotplot for GSEA result

For GSEA analysis, we are familar with the above figure which shows the running enrichment score. But for most of the software, it lack of visualization method to summarize the whole enrichment result. In DOSE (and related tools including clusterP...

Read more »

How to map your Google location history with R

December 29, 2016
By
How to map your Google location history with R

It’s no secret that Google Big Brothers most of us. But at least they allow us to access quite a lot of the data they have collected on us. Among this is the Google location history. If you want to see a few ways how to quickly and easily visualize ...

Read more »

Pokemon and TrelliscopeJS!

December 29, 2016
By

I’m always looking for ways to spark my kid’s interest in computers, data, etc. This has proven to be more difficult than I thought it would be (kids these days…). I suspect this may have something to do with the ubiquity of electronic devices that “just work”, making them less novel and less interesting to tinker with, but speculation...

Read more »

a Galton-Watson riddle

December 29, 2016
By
a Galton-Watson riddle

The Riddler of this week has an extinction riddle which summarises as follows: One observes a population of N individuals, each with a probability of 10⁻⁴ to kill the observer each day. From one day to the next, the population decreases by one individual with probability K√N 10⁻⁴ What is the value of K that

Read more »

Sampling from shifted Gompertz distribution

December 29, 2016
By
Sampling from shifted Gompertz distribution

using Accept-Reject method - Shifted Gompertz distribution Shifted Gompertz distribution is useful distribution which can be used to describe time needed for adopting new innovation within the market. Recent studies showed that it outperforms Bass model of diffusion in some cases1. Its pdf is given by Below we...

Read more »

7 Visualizations You Should Learn in R

December 29, 2016
By
7 Visualizations You Should Learn in R

7 Visualizations You Should Learn in R With ever increasing volume of data, it is impossible to tell stories without visualizations. Data visualization is an art of how to turn numbers into useful knowledge. R Programming lets you learn this art by offering a set of inbuilt functions and libraries to build visualizations and present... Read MoreThe...

Read more »

Quadratic Discriminant Analysis of Two Groups

December 29, 2016
By

As mentioned in the post on classification with linear discriminant analysis, LDA assumes the groups in question have equal covariance matrices . Therefore, often when the groups do not have equal covariance matrices, observations are frequently assigned to groups with large variances on the diagonal of its corresponding covariance matrix... The post Quadratic Discriminant Analysis of Two Groups...

Read more »

Using R to prevent food poisoning in Chicago

December 29, 2016
By

There are more than 15,000 restaurants in Chicago, but fewer than 40 inspectors tasked with making sure they comply with food-safety standards. To help prioritize the facilities targeted for inspection, the City of Chicago used R to create a model that predicts which restaurants are most likely to fail an inspection. Using this model to deploy inspectors, the City...

Read more »

Intermediate Tree 1

December 29, 2016
By
Intermediate Tree 1

If you followed through the Basic Decision Tree exercise, this should be useful for you. This is like a continuation but we add so much more. We are working with a bigger and badder datasets. We will be also using techniques we learned from model evaluation and work with ROC, accuracy and other metrics. Answers

Read more »

An Interview With Jo Hardin, author of Foundations of Inference

December 29, 2016
By

Hey R fans! A new episode of DataCamp's DataChats video series is out!  In this episode, we interview Jo Hardin. Jo is a Professor of Mathematics at Pomona College with many years of R experience.  She has a pure passion for education and has been w...

Read more »

Reactive acronym list in stratvis, a timevis-based Shiny app

December 29, 2016
By
Reactive acronym list in stratvis, a timevis-based Shiny app

Abstract I present a method for reactively updating a table of acronyms from a Shiny interactive timeline using renderDataTable and timevis. The method is used in the new Shiny app, stratvis. The stratvis app The stratvis Shiny app provides a rich a...

Read more »

Sponsors

Mango solutions









Zero Inflated Models and Generalized Linear Mixed Models with R

Quantide: statistical consulting and training

ODSC1

ODSC2

datasociety

http://www.eoda.de







CRC R books series







Six Sigma Online Training





Contact us if you wish to help support R-bloggers, and place your banner here.