Publications by Francis Smart

Are Fox News Polls Biased?

29.05.2013

Especially after the outcome of the mid-term election, I think there is a common contention among some groups that there is something wonky about Fox News when it comes to reporting polls relative to President Obama and the Democratic Party in general.Graph 1Looking at the 795 polls (RealClearPolitics.com) thus far produced shows that there are 5...

4470 sym 10 img 8 tbl

Running R Scripts Directly From Dropbox

05.06.2013

I have written a little function that allows users to run R scripts out of Dropbox directly from any location.  It was aided by this post on biobucket.  The reason I am particularly interested in this feature is because I am often using a server to run my R code.  This otherwise would require me to upload my R script directly to the server eve...

1485 sym R (674 sym/1 pcs)

A Shiny App Goes Viral

07.06.2013

I am not sure how many of you have seen this Business Insider article.  It is basically about a shiny app created by Joshua Katz as NC State.  It is really fun playing with shiny app.With nearly a million facebook likes this web app built using R with the shiny is a clear demonstration of how effective and professional shiny can be...

1135 sym 4 img 2 tbl

Bulk search for domain names using R

08.06.2013

# There are several domain name servers that allow # for bulk searching of domain names. # http://www.godaddy.com/bulk-domain-search.aspx # http://www.namestation.com/bulk-domain-search # However, they do not provide any wildcard support # and instead expect users to supply their own list. # Which is not a problem if you are an R coder. # This...

444 sym R (1939 sym/1 pcs)

More explorations of Shiny

11.06.2013

I have continued to explore the functionality of the Shiny package released by the Rstudio team and I have been increasingly impressed.  The code fits together very clean and easy to manipulate or add to.  If you have some knowledge of html or java shiny makes an excellent opportunity for developers of web apps with backgrounds in R...

3305 sym 4 img 1 tbl

Sudoku Automation Solver Challenge – R

14.06.2013

On a recent flight I was bored waiting for the plane to land and I tried out the electronic sudoku game that they had offered.  I found the game surprisingly interesting as I realized that it is far more entertaining when you cannot use paper or pencil to augment the cognitive solution seeking process.  In addition, having your scor...

3683 sym 8 img 2 tbl

Zombie Apocalypse Survival Test – R-Powered (using Concerto)

17.06.2013

This test is the first attempt to seriously assess the ability of individuals to survive a zombie apocalypse.  This test is administered using the R powered open-source testing platform Concerto developed at the University of Cambridge. The test administers a number of questions which are expertly chosen in order to evaluate the lik...

1507 sym 2 img

Optimal Pricing for a Simple Monopolist

05.07.2013

# A single price monopolist is a monopolist because it is the only supplier of a particular product. The monopolist therefore has the power to choose a price to sell the product at. # Those who have a willingness to pay which is greater than the price will buy the good while those who have a willingness to pay for the good which is less than th...

446 sym R (3270 sym/3 pcs) 6 img

A Sudoku Puzzle Solver – attempt 1

09.07.2013

I have programmed up a R based Sudoku problem solver for Sudoku puzzles of that only require simple inference.  In these puzzles a solution can be found using only first order inference.  This solver can be found at the end of the code located in the git:https://github.com/EconometricsBySimulation/2013-06-14-SudokuA puzzle of this f...

3317 sym 4 img 1 tbl

Simulation of Blackjack: the odds are not with you

19.07.2013

I often want to simulate outcomes varying across a set of parameters. In order to accomplish this in an efficient manner I have coded up a little function that takes parameter vectors and produces results. First I will show how to set it up with some dummy examples and next I will show how it can be used to select the optimal blackjack strategy. ...

448 sym R (7791 sym/2 pcs) 2 img