rbyexamples.blogspot.com
R by examples: R for Stata users (Part 3)
http://rbyexamples.blogspot.com/2015/07/r-for-stata-users-part-3.html
Thursday, July 2, 2015. R for Stata users (Part 3). We learned how to use R to load datasets, perform simple manipulations, and conduct linear regression. Here, we will learn how to save work, draw scatterplots, handle dates and times, extract substrings, and encode variables. Make sure that you've opened RStudio and loaded the auto dataset. Task #11: Save work. The following command will write a CSV file to RStudio's current working directory:. Writecsv(auto, "edited auto.csv"). And we can then write ou...
rbyexamples.blogspot.com
R by examples: Plotting maps with choroplethr
http://rbyexamples.blogspot.com/2015/07/plotting-maps-with-choroplethr.html
Saturday, July 4, 2015. Plotting maps with choroplethr. According to the below graphic from the Sacramento Bee, Latinos have overtaken whites to become the most populous ethnic group. Let's use the choroplethr package to examine the racial distribution of California counties. Let's start with the preliminaries: installing and loading the package, as well as loading the relevant datasets. We'd also need to load the ggplot2 library, which will come useful in plotting the maps. Consists of three layers:.
rbyexamples.blogspot.com
R by examples: Overview of Machine Learning Techniques in R
http://rbyexamples.blogspot.com/2015/07/overview-of-machine-learning-techniques.html
Sunday, July 12, 2015. Overview of Machine Learning Techniques in R. Whenever we do something as simple as a Google search, we benefit from machine learning. Demand is high for those with machine learning skills - a search of LinkedIn reveals 9,369 results for "machine learning". Subsequent posts will elaborate on these in more detail. September 1, 2015 at 8:52 PM. Thanks for sharing your interesring post. Koyo kaki bamboo vbo original. Harga Grosir Termurah Agen Moment Slimmer. R for Public Health.
rbyexamples.blogspot.com
R by examples: Extracting JSON data in R
http://rbyexamples.blogspot.com/2015/07/extracting-json-data-in-r.html
Monday, July 6, 2015. Extracting JSON data in R. Increasingly, data on the internet is presented in JSON format. For the uninitiated, here's what a JSON file looks like:. Name:"John Smith", timings:[1,2,3]},. Name:"Adam Yu", timings:[3,2,1]},. Name:"Frank Pin", timings:[7,4,3]}. How can R analyze the data appropriately? Let's take a look at a real life example: the salaries of public servants at the City of Chicago. R has three major packages which can analyze JSON data. Of what you need. I say most.
rtipsbyhal.blogspot.com
R Tips by Hal: Plotting Historical Closing Prices of a Stock, part 1
http://rtipsbyhal.blogspot.com/2012/02/plotting-historical-closing-prices-of.html
R Tips by Hal. R Code snippets, R tips, and short discussions. Monday, February 27, 2012. Plotting Historical Closing Prices of a Stock, part 1. Pull in historical data for AAPL. Z - read.csv(file="http:/ www.google.com/finance/historical? Q=NASDAQ:AAPL&output=csv",head=TRUE,sep=","). Output in PNG file. I - as.numeric(row.names(z). X - as.Date(z$. Plot(x, y, type="l", xlab="Date", ylab="Closing Price"). Helpful site for formatting dates:. Http:/ www.statmethods.net/input/dates.html. Helpful Sites for R.
rtipsbyhal.blogspot.com
R Tips by Hal: Creating Mathematical Functions
http://rtipsbyhal.blogspot.com/2012/03/creating-mathematical-functions.html
R Tips by Hal. R Code snippets, R tips, and short discussions. Saturday, March 3, 2012. Create a function of one independent variable. Define function y of x. Y - function(x) 2*x 1. Evaluate y for x=2. Create a function of multiple independent variables. Define function z of x and y. Z - function(x, y) 2*x y 2-7. Evaluate z for x=4 and y-7. Subscribe to: Post Comments (Atom). Example vector x - c(1, 24, 5, 3, 56) #Sample variance (assumes vector is sample) var(x) #Sample Standard Deviation (assumes vec.
rtipsbyhal.blogspot.com
R Tips by Hal: Interesting Mathematical Functions
http://rtipsbyhal.blogspot.com/2012/03/interesting-mathematical-functions.html
R Tips by Hal. R Code snippets, R tips, and short discussions. Saturday, March 3, 2012. Function with a pseudo-random component. F - function(x) cos(x) 2 - sample(1:10,1,replace=TRUE). Subscribe to: Post Comments (Atom). Example vector x - c(1, 24, 5, 3, 56) #Sample variance (assumes vector is sample) var(x) #Sample Standard Deviation (assumes vec. Function with a pseudo-random component f - function(x) cos(x) 2 - sample(1:10,1,replace=TRUE) #Factorial function factorial(). Helpful Sites for R.
rphantich.blogspot.com
phân tích dữ liệu: Vài link có ích
http://rphantich.blogspot.com/2015/11/vai-link-co-ich.html
Saturday, November 7, 2015. Vài link có ích. Trong note này tôi sẽ cung cấp một số website có ích trong phân tích dữ liệu. Notes này sẽ cập nhật thường xuyên. A Compendium ofClean Graphs in R. Website chỉ cách xây dựng các biểu đồ khoa học bằng cách dùng các hàm R cơ bản. Data Analysis Examples (UCLA). Tập hợp một số sách về R. Assessment of risk prediction models. R for Public Health. Practical Assessment, Research and Evaluation. PARE): Một dạng tạp chí trực tuyến về phương pháp phân tích dữ liệu.
rphantich.blogspot.com
phân tích dữ liệu: Vẽ đường biểu diễn ROC
http://rphantich.blogspot.com/2015/11/ve-uong-bieu-dien-roc.html
Saturday, November 7, 2015. Vẽ đường biểu diễn ROC. Cách vẽ đường biểu diễn ROC gồm ba bước như sau:. Là tạo ra một mô hình tiên lượng (cũng có thể xem là "rule"), rồi tính xác suất tiên lượng bằng cách dùng mô hình đó;. Là tính độ nhậy (sensitivity) và độ đặc hiệu (specificity) cho mỗi giá trị tiên lượng;. Là vẽ đường biểu diễn. Tất cả 3 bước đó có thể triển khai trong package có tên là pROC. Dat = na.omit(dat). Id gender age wt. Lst lstbs fx pfx fall. 62 72 24.06. 64 85 30.48. 76 48 20.50. Dat$pred2 = ...
SOCIAL ENGAGEMENT