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
0answers
21 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
64 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
21 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 ...
2
votes
0answers
141 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 ...
0
votes
1answer
33 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 ...
-1
votes
1answer
92 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
1answer
32 views

Median of a list of frequencies

I have a list of groups and the frequencies of every group. E.g. ...
0
votes
0answers
10 views

Further analysis after topic identificatio

Using lda to find topics ...
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 ...
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 ...
1
vote
1answer
58 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
0answers
100 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. ...
0
votes
1answer
30 views

R package vs REST API

I have a logistic regression algorithm in R to predict irresponsible users. I need this to be as flexible as possible for any market. I would need to use the logistic regression algorithm to ...
0
votes
1answer
138 views

Error loading tidyverse in R Studio - No broom package

I'm getting numerous errors when trying to install packages, namely tidyverse and ggplot. The error is of the form are always in the form: ...
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
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
1answer
31 views

Merging three different customer segmentation systems into one

I have been given a task where I have three existing customer segmentation systems (rule based e.g. if customer spends X in Y amount of time AND whatever then put in top spender segment is one segment,...
1
vote
2answers
107 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://...
4
votes
1answer
87 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
0answers
19 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 ...
3
votes
1answer
212 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
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. ...
0
votes
0answers
202 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. ...
0
votes
1answer
30 views

How to interpret two continous variables output using GAM?

I am sort of new in R and learning day by day. I really need help with GAM. I have to find out whether association is linear or non-linear by using GAM. The predictor variable is temperature at lag0 ...
1
vote
1answer
25 views

How to find what events cluster together?

I have a data set that looks at a five-year timespan of peoples' lives and indicates if specific events have occurred (Divorce, Birth of Child, Health Shock, etc.). ...
1
vote
1answer
35 views

About Hadley Wickham paper on tidy data

I read this paper and understood it very well, but I miss negative impact that will happen if we don’t fix the 5 types of messy data introduced in the paper (page 5), or even how fixing them will make ...
0
votes
0answers
23 views

Need Help in modeling sequence prediction problem

I am working on a problem where I have a dataset with 50 predictors (all numeric) and one response variable which is a string of words. ...
1
vote
0answers
20 views

Is it possible to create nonbinary trees in XGBoost?

I'm looking through the documentation for XGBoost, and I'm not seeing any parameters relating to number of branches per node.
0
votes
0answers
21 views

R: Difference in understanding of likelihood and Goodness-of-fit statistics

I am trying to fit normal distribution to my data using fitdist. The log likelihood of fit comes out to be -2788549. Since log likelihood is negative it means likelihood value lies in 0 and 1 which ...
0
votes
0answers
12 views

Prepping data for association rules mining

I have access to transactional data from an pharmacy claims database. I can easily create the data in the typical format that is a column for transaction id and a separate column for product i.e. <...
0
votes
0answers
50 views

Handling different length string features and prediction of these based on other features

I am currently working on a problem where the dataset contains 200+ features (Let's call them the code features, e.g no.of.loops, memoryInst, loadInst, etc and Flags that are used to compile code ...
0
votes
0answers
20 views

R: analysis of conditional heteroscedasticity using McLeod Li test

I am using R for McLeod Li test for conditional heteroscedasticity on time series before and after boxcox transformation. The null hypothesis for this test is of no heteroscedasticity. I observed that ...
0
votes
0answers
24 views

R: Error using Shapiro Wilk test for multivariate normality

I want to test if my data is multivariate normal. For this, I am using mvnnormtest package and Shapiro-Wilk multivariate normality test. I am passing the data to function as: ...
0
votes
0answers
15 views

R: Breusch-pagan test heteroscedasticity before and after boxcox transformation

I am trying breusch-pagan on a a feature regressed using multiple variables as: bptest(lm(V1~V2+V3+V4+V5+V6+V7+V8+V9+V10+V11+V12+V13+V14,data=data)) It shows BP ...
1
vote
0answers
40 views

Different approaches for categorical non-ordered data clustering in R

I'm trying to find different clustering approaches for only categorical data in R, so far I found: klaR for kmode cba for rock Hierarchical clustering (agglomerative or divisive) with a categorical ...
0
votes
0answers
8 views

Analysis on the 5 segment of the data to differentiate from each other using R

I have 1000 customers operational data which is already divided into segments. Now I have to do analysis on different segments to find out how they differ from each other. Why they fall into their ...
0
votes
0answers
12 views

How to use interaction variables and indicator variable with GBM model in R?

I am new to Machine Learning and i have been working on a classification model which predicts donor is available or not. There is a variable which specifies whether user registered online voluntarily ...
2
votes
1answer
58 views

When I should use PCA?

I have a data set with 60000 rows and 32 columns. I want to use SVM (with some more constraints that make it more complicated)and I think 32 columns are too large. So I decided to use PCA. But when I ...
-1
votes
1answer
45 views

How to interpret this summary output in R?

How Do I interpret this summary output in R? Coefficients: ...
0
votes
1answer
21 views

Sample Space of Longest Run

I am trying to find a way to calculate all possible combinations of a sequence that have a certain length of long run. When answering questions regarding sequences of heads and tails, sometimes ...
0
votes
0answers
16 views

A way to identify anomalous trends amongst several trends?

I'm working on a personal project, where I'd like to identify anomalous trends. Here's the scenario: Imagine a company can sell 3 types of say, candies: X, Y, and Z. For some reason, these prices can ...
0
votes
0answers
17 views

how should i check stability of community detection algorithm?

I have a community detection algorithm that communities can't have overlap. It works based on density of edges. Now I want to see how stable this algorithm is (if I decrease internal edges and ...
0
votes
0answers
24 views

ARCH and GARCH model working and R code for its implementation

my time series data set doesn't have a proper trend or seasonality. Heard about ARCH and GARCH model which works fine on Un-trended data set but I am not finding the proper R code for its ...
0
votes
0answers
16 views

Create 'All' categories and summarize

I have a dataframe with columns as defined below. For each of these variables ...
0
votes
0answers
32 views

Sum only unique value by group

That's the structur of my data set ...
0
votes
2answers
73 views

Help on Looping in R

I am trying to build a for loop in R. but facing the error as the loop is not creating the exact variable and may be double counting. What i trying to do is The code has to go through every row and ...
0
votes
0answers
29 views

How to add weight to a variable to a ensemble method

I am building an ensemble method and would like to add weight to one particular variable (x3 in this case). How can I do this? Here is my code: ...
0
votes
3answers
53 views

Why does changing the cluster number change the plot in Kmeans?

This might be a dumb questions but I can't find the answer to it. I don't have the perfect mathematical understanding of kmeans, so apologies if it is. I'm just wondering why I see a different plot ...
0
votes
0answers
73 views

Transformation of matrix with missing values for hierarchical clustering

Comparing different variables, I got a matrix with lots of missing values. How do I have to transform the matrix below for hierarchical clustering? What I have already tried: ...
0
votes
1answer
27 views

How to transform many columns of TRUE/FALSE/NA to just TRUE/FALSE?

I have a dataframe that consists of a few columns of text, and then a bunch of columns that are TRUE/FALSE or NA (they were TRUE/FALSE but I left-joined them with ...