Questions tagged [r]

R is a free, open-source programming language and software environment for statistical computing, bioinformatics, and graphics.

Filter by
Sorted by
Tagged with
8
votes
2answers
756 views

Best way to store large data set using R from Twitter?

I am working on a project that aims to retrieve a large data-set (i.e., tweet data which is a couple of days old) from Twitter using the twitteR library on R. have difficulty storing tweets because ...
8
votes
2answers
2k views

visualize a horizontal box plot in R

I have a dataset like this. The data has been collected through a questionnaire and I am going to do some exploratory data analysis. ...
1
vote
0answers
35 views

How to extract the values used in columns by a Classification model in R?

I want to find the variables (and its values) used to build a classification model? I came to know that the following code does the same get_all_vars(model_built, dataset_used_for_building_a_model) ...
0
votes
1answer
3k views

rpart and rpart2

I'm not sure if this is more appropriate for SO or DS in Stack Exchange since technically it's not about coding: in caret package for training in R, it's possible ...
2
votes
1answer
721 views

Random Forest, Type - Regression, Calculation of Importance Example

I am trying to use a Random Forest Model (Regression Type) as a substitute of logistic regression model. I am using R - randomForest Package. I want to understand the meaning of Importance of ...
3
votes
1answer
811 views

What loss function does the 'multinomial' distribution with the gbm package in R use?

All distributions in the gbm package in R are associated with a loss function. For example, when we set distribution = 'binomial'...
3
votes
0answers
64 views

Identifying sequences of behavioral interactions between multiple individuals

I'm wondering if anyone might have some novel insights as to the best way to analyze the following data. It's a problem I've been thinking about in the back of my mind for a while, so I thought that ...
3
votes
1answer
66 views

Is it my Sales growth is depend on Commisions/Discounts?

I prefer this model in R We are capturing sales data by time series (Month by month). Some of items have commissions and some have Discounts and others have both commissions and discounts. Is it ...
3
votes
1answer
72 views

When to Perform non-linear dimension reduction

When do we feel need to go through non-linear transformation like kernel PCA ? Please share an example
1
vote
1answer
167 views

Error using twitter R package's userTimlien

I am using twitteR package to retrievie timeline data. My request looks as follows: tweets <- try(userTimeline(user , n=50),silent=TRUE) and this worked quite ...
4
votes
1answer
820 views

Understanding output stepAIC

I am using the stepAIC function in R to do a bi-directional (forward and backward) stepwise regression. I do not understand what each return value from the function ...
1
vote
1answer
193 views

How i can generate the probabilistic graph for my dataset?

Im doing my academic project. im having the base paper for reference the paper is IEEE paper "effective and efficient clustering methods for correlated probabilistic graph". i wish to do this in R ...
4
votes
1answer
2k views

How to use “sann” function in R to solve graph problems?

I came across a package in R which has a function called sann for simulated annealing. sann uses parameters ...
3
votes
3answers
15k views

How to read file from user in Shiny and assign it to a variable in global.r?

I want to read a csv file as input from user in Shiny and assign it to a variable in global.r file.The code I have in ui.R is ...
1
vote
1answer
180 views

Gradient descent parameter estimation Package for R

I am looking for a package that does gradient descent parameter estimation in R, maybe with some bootstrapping to get confidence intervals. I wonder if people call it something different here as I get ...
0
votes
2answers
307 views

Tidying Time Intervals for Plotting a Histogram in R

I'm doing some cluster analysis on the MLTobs from the LifeTables package and have come across a tricky problem plotting ...
2
votes
1answer
160 views

Approaches to high dimension pattern matching problem

My apologies in advance as I am new to this. I have searched the internet and tried various processes and nothing seems to work or address this situation. I have a dataset of 30,000 transactions and ...
2
votes
1answer
171 views

Creating obligatory combinations of variables for drawing by random forest

Problem For my machine learning task, I create a set of predictors. Predictors come in "bundles" - multi-dimensional measurements (3 or 4 - dimensional in my case). The hole "bundle" makes sense ...
1
vote
0answers
560 views

R lm(log(y)~x,data) models and predict, need to remember the exp. R2 differences

I noticed a difference between R and Excel when it comes to trend lines. Basically I am automating a simple process that someone does. He/she takes web traffic and finds the best trend line by ...
0
votes
1answer
351 views

Finding predictions using biglm without finding errors

I'm using the biglm R package for linear regression. click/impression is the output required. But the test data does not contain click and impression. The predict...
-2
votes
1answer
1k views

Understanding of minbucket function in CART model using R

Assume the training data is fruit, which I am going to use for prediction in a CART model in R: ...
2
votes
1answer
8k views

Extracting model equation and other data from 'glm' function in R

I've made a logistic regression to combine two independent variables in R, using pROC package and I obtain this: ...
7
votes
3answers
1k views

Forecasting Foreign Exchange with Neural Network - Lag in Prediction

I have a question regarding the use of neural network. I am currently working with R (neuralnet package) and I am facing the following issue. My testing and validation set are always late with respect ...
2
votes
1answer
936 views

Building a static local website using Rmarkdown: step by step procedure [closed]

I am trying to understand the procedure of building a static local website using R and Rmarkdown. I am aware of a Rmarkdown website where the procedure is outlined, ...
4
votes
1answer
551 views

Vectorization of for loop in sentiment analysis

I'm struggling with for loop in R. I have a following data frame with sentences and two dictionaries with pos and neg words: ...
1
vote
0answers
168 views

Huge discrepancies in Logistic Regression and SVM using HOG features to identify an Object

I am doing some research on Logistic regression and SVM using different parameters using HOG features. I am facing a bit of problem while understanding each classifier with combination of different ...
7
votes
1answer
7k views

How does SQL Server Analysis Services compare to R?

This may be too broad of a question with heavy opinions, but I really am finding it hard to seek information about running various algorithms using SQL Server Analysis Service Data Mining projects ...
1
vote
2answers
713 views

Appropriate way to store data in R

I have data, which looks like this: These data are only for one subject. I will have a lot more. These data will be analyzed in R. Now I'm storing them like this: ...
0
votes
2answers
167 views

subsetting R data frame

I am subsetting some data frames and am sure there is a better way. Essentially, I have two data frames. The first is the actual data. The second has some meta data and importantly a flag on ...
3
votes
2answers
1k views

R in production

Many of us are very familiar with using R in reproducible, but very much targeted, ad-hoc analysis. Given that R is currently the best collection of cutting-edge scientific methods from world-class ...
10
votes
1answer
10k views

Do you have to normalize data when building decision trees using R?

So, our data set this week has 14 attributes and each column has very different values. One column has values below 1 while another column has values that go from three to four whole digits. We ...
1
vote
1answer
546 views

Combining data sets without using row.name

I start with a data.frame (or a data_frame) containing my dependent Y variable for analysis, my independent X variables, and some "Z" variables -- extra columns that I don't need for my modeling ...
4
votes
4answers
719 views

Determine highly correlated segments

Given a dataset that has a binary (0/1) dependent variable and a large collection of continuous and categorical independent variables, is there a process and ideally a R package that can find ...
0
votes
2answers
99 views

Scaling thousands of automated forecasts in R

Hello and thanks in advance! I'd like some advice on a scalability issue and the best way to resolve. I'm writing an algorithm in R to produce forecasts for several thousand entities. One entity ...
0
votes
1answer
532 views

How to test/validate unlabeled data in association rules in R?

I produced association rules by using the arules package (apriori). I'm left with +/- 250 rules. I would like to test/validate the rules that I have, like answering the question: How do I know that ...
0
votes
3answers
179 views

R Programing beginner [closed]

Hi I am new to Data analytics.I am planning to learn R by doing some real time projects. How should I stream line (set goals) my time in learning R and also I have not learnt statistics till data. I ...
4
votes
3answers
682 views

machine learning on athlete performances to predict the time in a future race

Example Data I have a dataset (in R as a data frame) of race results for athletes. ...
1
vote
1answer
8k views

Hardware requirements for Linux server to run R & RStudio [closed]

I want to build a home server/workstation to run my R projects. Based on what I have gathered, it should probably be Linux based. I want to buy the hardware now, but I am confused with the many ...
7
votes
1answer
1k views

Linear Regression in R Mapreduce(RHadoop)

I m new to RHadoop and also to RMR... I had an requirement to write a Mapreduce Job in R Mapreduce. I have Tried writing but While executing this it gives an Error. Tring to read the file from hdfs ...
0
votes
2answers
315 views

Data transposition code in R

I've been working in SAS for a few years but as my time as a student with a no-cost-to-me license comes to an end, I want to learn R. Is it possible to transpose a data set so that all the ...
0
votes
1answer
1k views

Exporting R model to OpenCV's Machine Learning Library

I'm wonder if it's possible to export a model trained in R, to OpenCV's Machine Learning (ML) library format? The latter appears to save/read models in XML/YAML, whereas the former might be exportable ...
1
vote
0answers
739 views

R-Cassandra connection with RJDBC

I am trying to connect with cassandra in R using RJDBC. When I execute casscon <- dbConnect(cassdrv, "jdbc:cassandra://ipaddrs:9160/demodb") I am getting <...
2
votes
0answers
457 views

How to Interpret Multinomial Specification in R's `mnlogit` package

The mnlogit package in R allows for the fast estimation of multinomial logit models. The specification of forumlas is a bit different from most other regression ...
2
votes
1answer
695 views

How to run R scripts without closing X11

I would like to run an R script using a single command (e.g. bat file or shortcut). This R script asks the user to choose a file and then plots information about that file. All is done via dialog ...
3
votes
3answers
3k views

Visualizing Support Vector Machines (SVM) with Multiple Explanatory Variables

I was wondering if anyone was aware of any methods for visualizing an SVM model where there are more than three continuous explanatory variables. In my particular situation, my response variable is ...
2
votes
1answer
65 views

Adaptive regression parameter estimation in R

How would I do parameter estimation and prediction for the adaptive regression model using R, as in the 4th page of the paper linked below? http://papers.ssrn.com/sol3/papers.cfm?abstract_id=923635 ...
2
votes
1answer
330 views

survey data analysis (discrete data)

I did small survey and get such data: ...
2
votes
3answers
317 views

Differences in scoring from PMML model on different platforms

I've built a toy Random Forest model in R (using the German Credit dataset from the caret ...
2
votes
1answer
365 views

Which packages or functions can I use in R to plot 3D data like this?

There're many data points, each of which is associated with two coordinates and a numeral value, or three coordinates. And I wish it is coloured. I checked packages "scatterplot3d" and "plot3D" but I ...
3
votes
1answer
4k views

R Script to generate random dataset in 2d space

I want to analyze the effectiveness and efficiency of kernel methods for which I would require 3 different data-set in 2 dimensional space for each of the following cases: BAD_kmeans: The data set ...