A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

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
1
vote
1answer
532 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 ...
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 ...
2
votes
3answers
1k views

training one SVM model for predicting more than one response variable

Please I want to know if there is any SVM R package that can handle more than one response variable (y) at a time. that is to train one model for predicting more than one response variable. it could ...
0
votes
1answer
531 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 ...
1
vote
1answer
433 views

Null-invariant measures of association in R

A usual way to find association rules in R is the "arules" package, which easily let's use calculate some rules based on the apriori algorithm. However, for the data i'm using, I have a lot of NULL ...
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 ...
6
votes
2answers
13k views

Python or R for implementing machine learning algorithms for fraud detection [closed]

I was wondering which language can I use: R or Python, for my internship in fraud detection in an online banking system: I have to build machine learning algorithms (NN, etc.) that predict transaction ...
0
votes
3answers
176 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
669 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. ...
6
votes
2answers
9k views

Is the GA R package the best Genetic Algorithm package?

I am learning about Data Science and I love the Healthcare part. That's why I have started a blog and my third entry is about using Genetic Algorithm for solving NP-Problems. This post is https://...
24
votes
5answers
3k views

VM image for data science projects

As there are numerous tools available for data science tasks, and it's cumbersome to install everything and build up a perfect system. Is there a Linux/Mac OS image with Python, R and other open-...
1
vote
2answers
686 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: ...
4
votes
4answers
675 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 ...
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 ...
1
vote
1answer
188 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 ...
2
votes
1answer
1k views

predict with Multinomial Logistic Regression

If I execute the following code I have no problem: ...
0
votes
2answers
272 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 ...
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 ...
9
votes
3answers
2k views

R random forest on Amazon ec2 Error: cannot allocate vector of size 5.4 Gb

I am training random forest models in R using randomForest() with 1000 trees and data frames with about 20 predictors and 600K rows. On my laptop everything works ...
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
733 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 <...
3
votes
1answer
3k views

java.lang.NoClassDefFoundError: org/apache/hadoop/fs/FSDataInputStream

Im traying to integrate Hadoop and R, I was install the pachages rJava and Rhipe in R, I do this steps to start Hadoop and R: -starting Hadoop services., -loading rJava and Rhipe packages by library ...
2
votes
0answers
453 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 ...
4
votes
1answer
1k 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 ...
11
votes
3answers
1k views

What regression to use to calculate the result of election in a multiparty system?

I want to make a prediction for the result of the parliamentary elections. My output will be the % each party receives. There is more than 2 parties so logistic regression is not a viable option. I ...
2
votes
1answer
651 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
2answers
668 views

How to run R programs on multicore using doParallel package?

I am running SVM algorithm in R.It is taking long time to run the algorithm.I have system with 32GB RAM.How can I use that whole RAM memory to speed my process.
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
3answers
799 views

Choosing the right data mining method to find the effect of each parameter over the target

I am dealing with a lot of categorical data right now and I would like to use an appropriate data mining method in any tool [preferably R] to find the effect of each parameter [categorical parameters] ...
2
votes
1answer
328 views

survey data analysis (discrete data)

I did small survey and get such data: ...
2
votes
1answer
363 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 ...
5
votes
9answers
2k views

Python and R good tutorials? [closed]

I would like to learn both Python and R for usage in data science projects. I am currently unemployed, fresh out of university, scouting around for jobs and thought it would be good if I get some ...
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 ...
2
votes
3answers
310 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
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 ...
3
votes
0answers
38 views

What are the parameter estimation methods for the two methods in this paper?

Automated Time Series Forecasting for Biosurveillance in the above paper, page 4, two models, non-adaptive regression model, adaptive regression model, the non-adaptive regression model's parameter ...
24
votes
9answers
20k views

Any Online R console?

I am looking for an online console for the language R. Like I write the code and the server should execute and provide me with the output. Similar to the website Datacamp.
6
votes
2answers
3k views

Kappa near to 60% in unbalanced (1:10) data set

As mentioned before, I have a classification problem and unbalanced data set. The majority class contains 88% of all samples. I have trained a Generalized Boosted Regression model using ...
2
votes
1answer
167 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 ...
2
votes
0answers
403 views

ANOVA RBF kernel returns very poor results

I was curious about the ANOVA RBF kernel provided by kernlab package available in R. I tested it with a numeric dataSet of 34 input variables and one output variable. For each variable I have 700 ...
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 ...
10
votes
1answer
824 views

Libraries for (label propagation algorithms/frequent subgraph mining) for graphs in R

General description of the problem I have a graph where some vertices are labeled with a type with 3 or 4 possible values. For the other vertices, the type is unknown. My goal is to use the graph to ...
-5
votes
2answers
275 views

which programming language has a large library that can do machine learning algorithm, R, matlab or python [closed]

As what I described in the title, we are especially interested in those for dealing with big data----ts efficiency and stability, and used in industry not in experiment or university. Thanks!
-2
votes
2answers
1k views

Which one will be the dominating programming language for next 5 years for analytics , machine learning . R or python or SAS [closed]

Which one will be the dominating programming language for next 5 years for analytics , machine learning . R verses python verses SAS. Advantage and disadvantage.
4
votes
1answer
799 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 ...
2
votes
3answers
2k views

Analysis of Split (A/B) tests using Poisson and/or Binomial Distribution

Cross posting this from Cross Validated: I've seen this question asked before, but I have yet to come across a definitive source answering the specific questions: What's the most appropriate ...
-1
votes
1answer
133 views

R error using Knitr

I am attempting to compile code using Knitr in R. My code below is returning the following error, and causes errors in the rest of the document. ...
3
votes
1answer
217 views

Avoid iterations while calculating average model accuracy

I am fitting a model in R. use createFolds method to create several k folds from the data set loop through the folds, repeating ...
18
votes
6answers
12k views

What do you use to generate a dashboard in R?

I need to generate periodic (daily, monthly) web analytics dashboard reports. They will be static and don't require interaction, so imagine a PDF file as the target output. The reports will mix tables ...
69
votes
1answer
210k views

How to get correlation between two categorical variable and a categorical variable and continuous variable?

I am building a regression model and I need to calculate the below to check for correlations Correlation between 2 Multi level categorical variables Correlation between a Multi level categorical ...