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
2
votes
1answer
86 views

Logistic Regression - Coefficients have p-value more than alpha(0.05)

I am very new to the machine learning field and have been practicing logistic regression on few sample data sets. I have built a Model using the logistic regression algorithm. Few of the coefficients ...
2
votes
2answers
850 views

Multi-touch Attribution Model

I would like to develop an algorithm for Multi-Touch Time-Decay Attribution Model for an e-mail campaign. I have the research paper ready and I would convert the paper into R-script. I am struggling ...
3
votes
1answer
67 views

What does “exaggeration” mean in the context of Boosting?

I am learning boosting, the machine learning ensemble meta-algorithm. The professor is grouping 3 weak classifiers into an ensemble and said that before this time point it is easy to understand. Take ...
0
votes
3answers
153 views

what to do if the missing data in one column is based on some value/condition in another column in r?

I have a dataset with 20,000 observations and 19 variables. To start off with I have a gender column which has three levels namely 'M', 'F' and 'U' where U can be taken as not disclosed. Whenever ...
2
votes
3answers
383 views

Clustering big data by reducing data accuracy?

I have 1 million rows with 20 attributes to do hierarchical clustering. When I want to build a distance matrix on this data by dist() in R, it says that it needs 5 ...
0
votes
0answers
16 views

Extra Alignment Error with KableExtra in R-markdown

I am relitively new to R and R-Markdown. I am receiving an error message of ! Extra alignment tab has been changed to \cr. \endtemplate In Table 4. I do not know what the error is telling me, ...
1
vote
2answers
87 views

Estimating test AUC using k-fold CV for imbalanced classification problem

I have an imbalanced classification problem. I first partitioned my data into a training set (Dataset A) and a test set (Dataset B). I then used the R package ...
0
votes
0answers
14 views

POS extraction using CoreNLP

I have a corpus of windows related documents, for which I need to extract nouns and verbs. However, it is required that I keep certain windows specific words such as "inline hooking", "instruction ...
2
votes
2answers
980 views

Binary Classification Probabilities

I'm using keras in R to predict financial time series. I guess that ANN converges. But when I do predictions I can see that probabilities don't sum up to 1 I'm using ...
0
votes
2answers
388 views

Big Data and a fwf files reading with filters

I have searched at all possible areas and haven't been able to find the solution to my problem. I am hoping that someone here would be able to help me out. If you feel that this question is already ...
4
votes
1answer
46 views

Count and summarise ID's each day while creating a new column that shows the accumulated ID's

I have two column, first one being the ID of a customer and second one being the Date of purchase. ...
2
votes
3answers
185 views

References for longitudinal data analysis

So my goal is to study longitudinal data (data in time series) by applying some data mining techniques. Ultimately I want to be able to "predict" outcomes. For example, a study of patients along the ...
2
votes
0answers
80 views

Tools for reading data from large, irregular csv files (aka excel file hell)

I have a csv file with 1000 columns and 50 rows that was collected over a few months. Embedded randomly in the file are ~1000 small datasets with semi-standard formats (some columns differ, so does ...
0
votes
0answers
16 views

Use sequential pattern mining rules to predict next window of a dataset

Suppose that I am performing Sequential Pattern Mining (maxgap = 1, i.e. rules for consecutive windows) and I ran the following code from arulesSequences in R Studio to determine significant rules ...
1
vote
0answers
19 views

Sapply is not working like for loop

sapply(c(2:5), function(y){ x[y,]<-x[y,]-(x[1,]*x[y, 1]/x[1, 1])}) for (i in c(2:5)){ x[i,]<-x[i,]-(x[1,]*x[i, 1]/x[1,1])} Can someone explain to me why ...
1
vote
0answers
9 views

What would be a good threshold number to convert some categories to Not Specified

The current topic is derived from this topic: https://community.rstudio.com/t/39722 (optional to read). I have the following dataset: myds : ...
1
vote
1answer
103 views

R stem and leaf values

How to make a stem and leaf plot with the following data in "R": 1717 1719 1645 3739 3024 3664 3830 2991 2430 2730 3469 5086 2119 3021 3292 2844 3426 2067 3215 2767 3124 2573 2840 2449 2584 1505 1390 ...
3
votes
0answers
36 views

Features selection with a lot of dummy variables in R

I am performing features selection on 3849 dummy variable (one-hot encoding) using Boruta algorithm and the algorithm is taking forever to run. Is there a faster way I can perform features selection ...
0
votes
0answers
20 views

R- stem and leaf plot [duplicate]

I am having trouble constructing a stem and leaf plot in "R" The data is: 1717, 1719, 1645, 3739, 3024 (This is only a subset of a larger sample but it is sufficient to show my problem) The output I ...
0
votes
0answers
35 views
0
votes
0answers
4 views

how to replace loadings in factanal object in r

I am trying to create a diagram but the function for it from package library(semPlot) takes an object. I can use factanal object or many other objects from FA packages. I chose factanal for ...
0
votes
0answers
30 views

Table flattening with spread in R

I am trying to use the spread function in dplyr to "flatten" a table but it does not appear to be working as intended. Example table: I am trying to flatten this one so that each Record Number is ...
11
votes
1answer
2k views

GPU Accelerated Data Processing for R in Windows

I'm currently taking a paper on Big Data which has us utilising R heavily for data analysis. I happen to have a GTX1070 in my pc for gaming reasons. Thus, I thought it would be really cool if I could ...
0
votes
1answer
27 views

Why the Logistic regression model trained with tensorflow performed so poor

I trained a logistic regression model with tensorflow but the accuracy of the model was so poor (accuracy = 0.68). The model was trained using simulated dataset and the result should be very good. is ...
0
votes
0answers
23 views

Are application assignments in Datascience common practice?

this might seem off topic, but I hope this question will be tolerated. I was recently asked to help a friend with an assignment in the process of applying for a new job as data scientist. And ...
2
votes
0answers
18 views

Packages for regression presentation

I have a linear regression model with 20+ variables and am looking for the best way to present my results in R Markdown HTML. Are there any R packages that make significant coefficients stand out and ...
1
vote
0answers
29 views

How do I use LIME in R to explain a Model created in KERAS?

I have created a model in KERAS R, using a data table, with the following script: ...
0
votes
0answers
74 views

Custom Cohen's Kappa metric for R in Keras is always zero

I created my own custom metric (Cohen's Kappa) in R using Keras backend. I defined the metric as follows: ...
0
votes
0answers
22 views

How can I create a terrain that looks like a staircase in R

I am trying to develop a terrain in R that looks like a stretched out staircase, i.e. the tread is the horizontal parts that I want to place buildings on, while the rise should be gentle sloping (not ...
0
votes
1answer
36 views

Caret “train” or special package

I see that there is an XGBoost package as well as XGBoost option in the "train" function in Caret. What is the difference between these two options, is it that they provide different settings? More ...
3
votes
0answers
202 views

Can you do automated feature engineering in R?

Since now Python has its own deep feature synthesis library, is there anything similar available in R? I know of bounceR but I'm not sure if it does the job as DFS does. Is anyone aware of anything ...
-1
votes
1answer
113 views

How Retail Analytics Project Can Be Done?

I have a project and I couldn't understand what I have to do because I am new with retail analytics. They said "Our goal is to measure the effects of promotion on sales" and "Your goal is to model ...
0
votes
0answers
11 views
0
votes
1answer
30 views

Which are the appropriate prameters for lda modeling?

I try to implement in R test for appropriate metrics for lda. Here the way I try to use LDA ...
1
vote
1answer
67 views

Measure degree of heteroscedasticity [closed]

I analyzed my time series using Breusch Pagan test and observed the presence of heteroscedasticity in it. After box-cox transformation, I again tested the time series using Breusch Pagan test. The ...
0
votes
1answer
16 views

Conditional Function in R [closed]

I have an R function for (i in 1:10) that reads in data and performs some cleaning. Is it possible to write a flexible statement to execute certain parts of the ...
0
votes
0answers
129 views

Save xboost model from R as Python pickle

I trying save R model to pickle, but I getting error Evaluation error: Unable to convert R object to Python type. ...
5
votes
1answer
113 views

Reticulate vs Python

I have gotten very used to coding in R and especially in RStudio. I like that interface. Nonetheless, I have some work that I ought to do in Python. I know that I can run Python code in RStudio if I ...
0
votes
1answer
37 views

How to execute a git project with different input data?

I would like to run this project and receive result from this project However I have problem to execute the step mailcorpus.json created by executing the sql script data/get_mail_corpus.sql on ...
0
votes
0answers
11 views

how use RBF for primal model of svm?

I know if we want to solve primal model of non-linear SVM, we have to generate new features. for example for kernel (1+xz)^2 for primal problem for any pair of features x1 and x2 we have to generate: ...
0
votes
1answer
5k views

Do Data Scientists prefer MACS? [closed]

I see many Data Science (DS) tutorials done on MACS, and many DS blogs recommend MACS as the best developing platform, thus the quote "Data Science is statistics on a Mac" came more than once into my ...
0
votes
1answer
2k views

How to resolve “invalid number of 'breaks'”

Code: f_custdata <- gsub(".", "", f_custdata) f_custdata <- as.numeric(f_custdata) hist(f_custdata) Error: Error in hist.default(f_custdata) : ...
1
vote
2answers
131 views

Splitting training and test set with financial data

I am using trees algorithms (decision tree, random forest and XGBoost) to forecast the sign of the returns in the stock market (classification). I am using this article as a reference: http://...
3
votes
1answer
284 views

What is Orange all about?

I read a lot about Orange here in the forum. I know that it is a Software developed at the University of Ljubljana. I guess it has some kind of GUI which makes it a „cheap and easy“ way to implement ...
0
votes
0answers
20 views

Interrater-reliability for several items at interval or ordinal scale with 2-3 different raters

I would like to compute the interrater-reliability in R for a sample (n=150) in which each individual was rated by 2 to 3 raters (in ca. 40% of the sample 2 raters, 60% 3 raters). Raters were ...
0
votes
0answers
33 views

How to compare 2 elements of a column with each other?

I am using R. I have a column with 4 elements {car, bus, walk, train}. I would like to compare the car and bus with each other with the help of the 3 other columns. ...
3
votes
2answers
3k views

How can we evaluate DBSCAN parameters?

yes, DBSCAN parameters, and in particular the parameter eps (size of the epsilon neighborhood). In the documentation we have a "Look for the knee in the plot". Fine, but it requires a visual analysis....
1
vote
1answer
77 views

Linear regression model with (categorical) predictor variables

I used LM model with (categorical) predictor variables on my data in r like this (I have count variable as dependent/target variable): ...
0
votes
1answer
94 views

Setting up network communication between R and Python [closed]

I want to share data between R and python via network sockets (I expect the solution to also work for R-R and python-python). I am interested in server being both R and Python side. For now I am ...
0
votes
0answers
253 views

R SVM Predict - Error in predict.svm: test data does not match model

I started with a data frame of 23,515 rows and 3 columns. I split the data 70/30 into training/testing. I am fitting a classification model with SVM from the e1071 package to predict variable MISSING. ...

1 3 4 5 6 7 23