1. Announcement:
    Search functionality giving errors
    Dason ‎(Devorador de queso)
    05-07-2017
    Views:
    3,076
+ Post New Thread
Page 1 of 68 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 51 ... LastLast
Threads 1 to 60 of 4072

Forum: R

R programming and usage, R news, R tips and tutorials

  1. Sticky Thread Sticky: Today I Learned: ____

    I thought it might be nice to just have a place to post some happy little things you learned or (re)discovered about R that makes your life nicer and...

    Started by Dason‎, 01-03-2012 11:39 AM
    26 Pages
    1 2 3 ... 26
    • Replies: 387
    • Views: 227,882
    08-16-2017, 12:04 PM Go to last post
  2. Sticky Thread Sticky: What R packages are you aching to see?

    Are there any R packages that don't yet exist that you wish existed? What kinds of things do you wish were easier to do in R? What things do you...

    Started by Dason‎, 11-19-2015 01:38 AM
    • Replies: 2
    • Views: 10,921
    07-20-2017, 10:43 AM Go to last post
  3. Sticky Thread Sticky: R News and Updates

    I'm starting this thread out of frustration for my own oversight. blog.revolutionanalytics.com was having an R webinar today (LINK) that looked...

    Started by trinker‎, 08-24-2011 09:41 AM
    8 Pages
    1 2 3 ... 8
    news
    • Replies: 112
    • Views: 94,752
    04-24-2017, 10:42 AM Go to last post
  4. Sticky Thread Sticky: [R Graphics] Beautiful graphics thread

    Hi Everyone, I thought I might start a thread which showcases the graphics abilities of R. I'll start it off with one I just made. This thread...

    Started by TheEcologist‎, 10-17-2012 05:08 AM
    9 Pages
    1 2 3 ... 9
    • Replies: 120
    • Views: 102,653
    12-13-2016, 05:47 PM Go to last post
  5. Sticky Thread Sticky: Share your functions & code

    I’m starting this thread as a sharing thread. The power of is in building and sharing on one another’s creativity. I’m often amazed at how people...

    Started by trinker‎, 06-25-2011 03:42 PM
    20 Pages
    1 2 3 ... 20
    • Replies: 286
    • Views: 213,549
    09-13-2016, 03:35 PM Go to last post
  6. Sticky Thread Sticky: Info for R users (Links, Manuals, Books, etc.)

    Note: This original post has been modified to make it easier to find the resources in the thread and to compile them into one location. If you want...

    Started by Tart‎, 08-06-2008 09:22 AM
    7 Pages
    1 2 3 ... 7
    information
    • Replies: 100
    • Views: 109,444
    04-14-2016, 01:02 PM Go to last post
  7. Sticky Thread Sticky: How to use Code tags

    Using Code Tags This thread contains a brief introduction to using code tags and presenting code in general on this forum. I'm biased toward R so...

    Started by Dason‎, 10-17-2012 07:20 PM
    • Replies: 0
    • Views: 23,989
    10-17-2012, 07:20 PM Go to last post
  1. Linear mixed model subject level

    Dear All I am new to R and I am implementing a linear mixed model for a variance shift outlier model. I am wondering if someone in the group can...

    Started by isingini‎, 07-31-2017 12:53 PM
    • Replies: 1
    • Views: 231
    Yesterday, 01:34 PM Go to last post
  2. cannot draw a histogram on R

    Im trying to draw a histogram with the code below. stat <- read.csv("C://Desktop//lung cancer.csv",header=T) x = (2000:2013) y = (0:12000)...

    Started by polly123‎, 08-18-2017 09:13 PM
    r histogram
    • Replies: 2
    • Views: 158
    Yesterday, 03:06 AM Go to last post
  3. Data frame of results

    Hi all Suppose I have 10 different models as such: fit1.glm <- glm(admit ~ gre , data = dat, family = "binomial") fit2.glm <- glm(admit ~ gpa,...

    Started by leonedelman‎, 08-18-2017 10:07 AM
    dataframe, glm, odds ratio
    • Replies: 1
    • Views: 110
    08-18-2017, 10:21 AM Go to last post
  4. Odds ratio plot on log scale

    Greetings, I have had difficulties plotting results from GLM logit models to show up as odds ratios on a log scale. Ultimately I want to obtain...

    Started by leonedelman‎, 08-17-2017 03:17 PM
    logit, odds ratio, plot
    • Replies: 3
    • Views: 177
    08-18-2017, 09:25 AM Go to last post
  5. Shaded confidence bands for parametric survival w/ survreg

    Hi all, I'd like to plot shaded confidence bands for a parametric survival curve fitted with survreg. It's easy to plot dashed confidence...

    Started by azaleah_‎, 08-15-2017 07:23 PM
    shaded confidence bands, survival function, survreg
    • Replies: 0
    • Views: 106
    08-15-2017, 07:23 PM Go to last post
  6. NBSVM in R

    Hi, I need some guid in write NBSVM cod in R. pleas help me

    Started by EhsanZereshki‎, 08-10-2017 08:24 AM
    2 Pages
    1 2
    • Replies: 15
    • Views: 544
    08-11-2017, 02:09 AM Go to last post
  7. Scoring Dataset (easy question)

    I have a dataset "Xs" and also some model coefficients. I would like to score the dataset using the coefficients. The dataset has 7 items and there...

    Started by hlsmith‎, 08-09-2017 08:52 AM
    • Replies: 3
    • Views: 168
    08-10-2017, 11:29 AM Go to last post
  8. LASSO (binomial) p-value and confidence intervals (selectiveInference) error

    I was just trying to quickly check out the "selectiveInference" package to slap confidence intervals on my beta coefficients from a glmnet (LASSO:...

    Started by hlsmith‎, 07-08-2017 10:06 PM
    • Replies: 5
    • Views: 364
    08-07-2017, 07:26 PM Go to last post
  9. Computing skewness and other distributional Characteristics when pdf is known

    Hi everybody I want to compute skewnesss and other distributional characteristics of a gamma distribution when its shape and scale parameters are...

    Started by deantop‎, 08-06-2017 12:35 AM
    gamma distribution
    • Replies: 1
    • Views: 172
    08-06-2017, 06:30 AM Go to last post
  10. Adjust for overdispersion in glm family = binomial (logit) model

    I have an overdispersion problem in my model.. I have the following data: y= succes/fail (%) x= Var1 : Temperature data...

    Started by lotw‎, 08-04-2017 04:26 AM
    binomial glm, glm, overdispersion, sigma
    • Replies: 1
    • Views: 196
    08-04-2017, 09:36 AM Go to last post
  11. How to take out data set from r-package?

    It is known that r-packages can contain data set. How (in the general case) take out this data set (to open in Excel)? If possible, please explain...

    Started by Ted Beginner‎, 07-30-2017 05:13 AM
    data set, r-package
    • Replies: 1
    • Views: 272
    07-30-2017, 06:17 PM Go to last post
  12. Caret package SAF/GAF error; "replacement has 1 row, data has 0"

    In R, whenever I try using the safs/gafs interface via. caret I keep running into this specific error: Error in { : task 1 failed - "replacement...

    Started by aranglol‎, 07-27-2017 08:09 PM
    caret, feature selection, genetic algorithm, random forest
    • Replies: 0
    • Views: 69
    07-27-2017, 08:09 PM Go to last post
  13. monitoring of autocorrelated linear profiles using generalised estimation equation

    Hi, I am Charles Okon a research student from Nigeria. Question How can I compute the ARL comparisons under different shifts of intercept,...

    Started by charlesokon‎, 07-13-2017 04:19 AM
    • Replies: 1
    • Views: 222
    07-27-2017, 01:50 PM Go to last post
  14. hope to make a sound when my program is finished

    Dear- In XP and Windows7, I used simple R command system("c:\\sndrec32 /embedding /play c:\\Myfile\\sound12.wav", wait=FALSE) to make a...

    Started by jk90029‎, 07-24-2017 11:53 PM
    • Replies: 1
    • Views: 272
    07-25-2017, 12:47 AM Go to last post
  15. Error in sort.list(y) ?

    I downloaded a dataset from the following link https://archive.ics.uci.edu/ml/datasets/human+activity+recognition+using+smartphones This is what...

    Started by t.wang21@yahoo.com.au‎, 07-17-2017 06:07 AM
    • Replies: 3
    • Views: 343
    07-20-2017, 12:25 PM Go to last post
  16. Combine two epidemiology netcdf files in R

    Hello, I have 2 netCDF files (each .nc file has 4 variables: Susceptible, Infected, Recovered and Inhabitable. The dimension of each variable is...

    Started by ashokkrish‎, 07-14-2017 02:15 AM
    geospatial, ncdf, rprogramming
    • Replies: 1
    • Views: 241
    07-19-2017, 10:02 PM Go to last post
  17. Generate Grouped Data with Exact Correlations, Means, and SD

    want to generate data with the following constraints. There is one factor and two numeric variables. Note that the desired mean structure is broken...

    Started by cla18‎, 07-17-2017 03:07 PM
    anova, rstatistics, simulated_data, split-plot model mixed
    • Replies: 1
    • Views: 196
    07-17-2017, 03:52 PM Go to last post
  18. Openbugs in R, log.txt not found

    Hi there, I am a new comer of both R and Openbugs. Now I am trying to run a multi-level model using Openbugs in R. I can get the result in the...

    Started by liushuci‎, 07-15-2017 03:07 AM
    • Replies: 1
    • Views: 233
    07-16-2017, 06:27 AM Go to last post
  19. GGPLOT2 - Sub Groups

    Hi, I'm trying to create a stratified forest plot in ggplot2. In our analyses, we prepared a logistic regression model for each strata (Immigrants...

    Started by jamesmartinn‎, 07-14-2017 10:43 AM
    • Replies: 0
    • Views: 242
    07-14-2017, 10:43 AM Go to last post
  20. How to generate many load profiles of EV superchargers in R

    Hi guys :wave:, I make balance simulation of load profile electric vehicle chargers in R. I use CHADEMO (45 kW). I need to genarate a lot...

    Started by creat‎, 07-13-2017 01:00 AM
    function, program r, simulation study
    • Replies: 0
    • Views: 150
    07-13-2017, 01:00 AM Go to last post
  21. H2o package error

    I use the h2o.init() function to initiatlize an H2o cluster but have had an error because of a long path. I am using Windows and R and H2o is in a...

    Started by t.wang21@yahoo.com.au‎, 07-13-2017 12:48 AM
    • Replies: 0
    • Views: 154
    07-13-2017, 12:48 AM Go to last post
  22. what is the best R package for mixed logit models?

    Hello everyone, I would like to estimate mixed logit models (e.g. mixed effect binary or ordered logit models) using mainly individual specific...

    Started by t.wang21@yahoo.com.au‎, 07-03-2017 08:02 AM
    • Replies: 3
    • Views: 418
    07-13-2017, 12:43 AM Go to last post
  23. How do I resolve 'Error singular gradient matrix at initial parameter estimates' in R

    Hello everyone, I am a PhD student and an intermediate in R. I work on metal (copper and zinc) mixtures toxicity in algae. I need help from...

    Started by Rafael007‎, 07-11-2017 11:36 AM
    • Replies: 2
    • Views: 223
    07-12-2017, 01:47 PM Go to last post
  24. [Simple R question] editor change

    Dear- Hi, long time no see. After starting RStudio, when we change a file a (existing) a <- edit(a) However, since RStudio editor is NO...

    Started by jk90029‎, 07-09-2017 08:29 PM
    • Replies: 2
    • Views: 257
    07-10-2017, 02:46 PM Go to last post
  25. How do I solve this dummy variable VaR problem? help!!!

    the problem is attached on a picture

    Started by AugusteDupin‎, 07-02-2017 04:20 PM
    • Replies: 1
    • Views: 234
    07-08-2017, 03:19 PM Go to last post
  26. Probability

    HI I have the attached data and would like to calculate: When the Status is Re-Activation what the probability is of it going past 0...

    Started by Danii_Pink‎, 07-06-2017 10:59 PM
    • Replies: 1
    • Views: 242
    07-07-2017, 12:10 PM Go to last post
  27. cross-validated predictions from glmnet

    Does anyone know if glmnet produces cross-validated predictions ie predictions for each observation fold that was left out of the model building (ie...

    Started by statlimp‎, 07-04-2017 02:26 AM
    cross-validation, glmnet
    • Replies: 2
    • Views: 298
    07-06-2017, 01:03 AM Go to last post
  28. error in using mlogit package

    Hello everyone, I am learning how to use mlogit package using the attached document. Whenever I enter the following command, however, I have got the...

    Started by t.wang21@yahoo.com.au‎, 07-03-2017 12:24 AM
    • Replies: 0
    • Views: 211
    07-03-2017, 12:24 AM Go to last post
  29. Extracting results from list objects (after performing multiple imputations)

    Dear TS, I have a question regarding extracting results from a list object. Here is an example: library(survival) library(mice) #...

    Started by ledzep‎, 06-27-2017 05:22 AM
    • Replies: 2
    • Views: 340
    06-29-2017, 06:43 AM Go to last post
  30. Modifying a R function

    Dear TS, I am trying to modify an existing R function from the MICE package. The standard implementation of multiple imputation in the MICE...

    Started by ledzep‎, 06-29-2017 06:36 AM
    • Replies: 0
    • Views: 253
    06-29-2017, 06:36 AM Go to last post
  31. how to plot a scatterplot with three different y axes?

    Hello, I have a dataset like the following: mydata <- structure(list(historical_sources = c(7.5, 6, 10, 2.5, 4.5, 2, 4.5, 2.5, 1, 7, 4.5, 9,...

    Started by gianmarco‎, 06-15-2017 11:09 AM
    • Replies: 4
    • Views: 705
    06-21-2017, 12:01 PM Go to last post
  32. how to extract the F value in anova from a permutation test

    Hi I did a permutation test using the following code perm=replicate(1000,anova(lm(sample(genenormal)~as.factor(snptest1)))) the I got the...

    Started by Marwah Soliman‎, 06-12-2017 11:47 PM
    rcode, rprogram
    • Replies: 1
    • Views: 402
    06-13-2017, 02:35 PM Go to last post
  33. Question Time-series data with non-unique time stamps, how to fix?

    I have a large data set that is in a dataframe object. My end goal is to convert it into a zoo object and run some time-series regressions. ...

    Started by doriengrd‎, 06-02-2017 01:34 PM
    • Replies: 1
    • Views: 395
    06-13-2017, 02:27 PM Go to last post
  34. reading dates from Excel: as.Date has problem with 1 date that looks just like others

    I have an Excel file with a bunch of dates. They all look as if they are formatted exactly the same. Here are 3 pasted from Excel: These...

    Started by efoss‎, 06-10-2017 12:02 AM
    • Replies: 1
    • Views: 327
    06-10-2017, 02:12 AM Go to last post
  35. Applying prepared script for one file to many files in a directory?

    I am having a problem with the main loop.it succeeded to finish reading and writing from the first file in my listfile(12 files) but failed when it...

    Started by Jonsson‎, 04-30-2012 12:36 PM
    2 Pages
    1 2
    r programming help
    • Replies: 15
    • Views: 2,702
    06-02-2017, 10:43 PM Go to last post
  36. Confidence interval with t-score in R

    Hello, I need to calculate the 95% confidence interval with a sample size = 200 stored in a vector named v_name. The problem says I need standard...

    Started by Regulus‎, 05-20-2017 01:38 PM
    • Replies: 1
    • Views: 874
    05-21-2017, 12:27 PM Go to last post
  37. Question Contrast drop off from factor x in using predict in decision tree in R

    Hi, I have tried research about this error warning message for several days without any info, e.g. ": contrasts dropped from factor staffx.f" etc.....

    Started by milk‎, 05-17-2017 09:49 PM
    contrast, decision tree
    • Replies: 3
    • Views: 545
    05-19-2017, 02:28 AM Go to last post
  38. Write a formula with R

    Hi everybody, I need help about the following formula because I have difficulties to write it correctly: $$\sum_{k \in U}{a_k d_k \frac{y_l -...

    Started by bomber‎, 05-17-2017 06:25 AM
    • Replies: 2
    • Views: 637
    05-17-2017, 10:32 AM Go to last post
  39. Clustering using Non Negative Matrix Factorization

    I have written code using Non negative Matrix Factorization. In the original matrix X, Row 3 is a duplicate of row 4. How can I interpret clustering...

    Started by bongielondy‎, 05-16-2017 07:55 PM
    • Replies: 0
    • Views: 510
    05-16-2017, 07:55 PM Go to last post
  40. 'Likert' package plotting

    Hi everyone I've been using the 'Likert' package for a while and find it pretty good. One thing I haven't been able to resolve is how to...

    Started by dt87‎, 05-12-2017 01:20 AM
    grouped data, likert, plotting
    • Replies: 2
    • Views: 668
    05-16-2017, 04:07 PM Go to last post
  41. How to put title to the visgauge graphs

    Dear All, I have two questions 1)How can I put a title "House sales" to the gauge plots? 2)How can I put break points on the gauge plots also?...

    Started by masarimk‎, 05-16-2017 04:26 AM
    • Replies: 1
    • Views: 570
    05-16-2017, 07:28 AM Go to last post
  42. how to extract titles out of a full name using (gsub)

    Using the titanic data set, I know you can extract a salutation out of a name using the following code name <- as.character("Braund, Mr. Owen...

    Started by semidevil‎, 04-24-2017 02:51 PM
    • Replies: 4
    • Views: 1,144
    05-15-2017, 01:44 PM Go to last post
  43. Help with error

    Hi All, I am trying to do a violinplot of different densities of particles. I stole this code from the ggplot page and it works perfectly fine...

    Started by AlinaMadita‎, 05-15-2017 08:54 AM
    • Replies: 0
    • Views: 459
    05-15-2017, 08:54 AM Go to last post
  44. averaging wind data from rWind package

    Hello! I came across an interesting package which allows to download (and plot) glbal wind data. The package is rWind. The wind data (i.e., speed...

    Started by gianmarco‎, 05-14-2017 01:38 AM
    • Replies: 4
    • Views: 632
    05-14-2017, 10:47 AM Go to last post
  45. how to label specific points in ggplot2

    Hello, I have the attached figure and I need the label of 2 points the purple and the blue points I used the following code ...

    Started by Marwah Soliman‎, 05-13-2017 03:47 PM
    • Replies: 1
    • Views: 652
    05-13-2017, 08:38 PM Go to last post
  46. Is there a par(mfrow()) for ggplot2?

    I have a loop written that should be able to ggplot histograms across n number of columns(variables). Using par(mfrow(2,2)) and base graphics, I can...

    Started by semidevil‎, 05-11-2017 03:48 PM
    • Replies: 1
    • Views: 686
    05-11-2017, 05:27 PM Go to last post
  47. Help adding new column by indexing

    I have a dataset that looks something like this structure(list(Red = c(65.76, 57.07, 32.93, 43.78, 189.55, 115.87, 72.96, 51.84, 52.39, 59.03,...

    Started by deangelr‎, 05-04-2017 12:22 PM
    aggregate, indexing, sort
    • Replies: 2
    • Views: 871
    05-05-2017, 09:55 AM Go to last post
  48. help where is the error

    I have the following code not written by me new_tum <- as.matrix(clinical) new_tum_collapsed <- c() for (i in 1:dim(new_tum)){ ...

    Started by Marwah Soliman‎, 05-03-2017 10:57 PM
    r programing, r programming help
    • Replies: 1
    • Views: 712
    05-05-2017, 05:04 AM Go to last post
  49. CFA & SEM in R

    Hi everyone. Can anyone guide me how to prepare data, and to conduct CFA & SEM? I want to use these analysis for my research, and just started...

    Started by zul1912‎, 05-04-2017 05:52 AM
    • Replies: 1
    • Views: 649
    05-04-2017, 07:58 AM Go to last post
  50. ARIMA(0,1,0) random walk with drift

    What code do I use to fit the above model, or what type of differencing do I do? Something like a lag 1 subtraction? My model seemed like...

    Started by hlsmith‎, 05-02-2017 02:43 PM
    integrated, lag
    • Replies: 5
    • Views: 841
    05-02-2017, 04:10 PM Go to last post
  51. Question Loading multiple .wav files at once

    Hi everyone, I'm writing a function that will statistically analyze an audio dataset using the packages tuneR and seewave. tuneR has a nice...

    Started by Coopers‎, 05-01-2017 09:21 AM
    audio, file uploading, seewave, tuner
    • Replies: 1
    • Views: 649
    05-01-2017, 10:17 AM Go to last post
  52. Finding variance

    Hi, I need to find the variance of a probability distribution with two vectors, Prize and Probability. The values in Prize are 1000, 100, 20, 10, 4,...

    Started by Regulus‎, 04-30-2017 10:36 PM
    • Replies: 1
    • Views: 525
    05-01-2017, 04:19 AM Go to last post
  53. Thumbs up Use preceding rows in function

    Hi, I have a simple (I think/hope) R question which I can't seem to find the answer to. It will probably be easier to show a small example of what...

    Started by chaps‎, 04-27-2017 05:41 AM
    • Replies: 8
    • Views: 1,139
    04-30-2017, 10:48 AM Go to last post
  54. GGPLOT: how do I draw a basic bar chart?

    I'm not understanding why I can't draw a simple bar chart. I have "month" in my x axis, and I want to sum all my "sales" and display it in a bar...

    Started by semidevil‎, 04-21-2017 03:10 PM
    • Replies: 1
    • Views: 1,191
    04-21-2017, 04:03 PM Go to last post
  55. [SOLVED] Get latest version of R on linux (Mint)

    This thread is just to serve as a marker for future searchers as Dason answered this for me: sudo apt-key adv --keyserver keyserver.ubuntu.com...

    Started by trinker‎, 12-23-2012 01:57 PM
    cran, linux
    • Replies: 6
    • Views: 13,474
    04-19-2017, 09:56 AM Go to last post
  56. ggsurvplot: Round n.risk for weighted data

    Hi all, I'm creating Kaplan-Meier plots with ggsurvplot on weighted data. When I add the risk.table (showing the number at risk over time) I get...

    Started by azalea‎, 04-18-2017 07:41 PM
    ggsurvplot, kaplan-meier, number at risk, round
    • Replies: 0
    • Views: 907
    04-18-2017, 07:41 PM Go to last post
  57. R lme4: Plotting three-way interaction / conditional coefficient plot

    Hi all, I'm trying to visualize a three-way interaction from a rather complex linear mixed model in R (lmer function from the lme4 package; the...

    Started by ferrand‎, 04-11-2017 06:37 AM
    • Replies: 1
    • Views: 880
    04-18-2017, 12:00 PM Go to last post
  58. how to put labels on ggplot2 graph

    I have a data and I did PCA on that data I used the following code i.pca=prcomp(tmydf) scores <- as.data.frame(i.pca$x) qplot(x = PC1, y =...

    Started by Marwah Soliman‎, 04-17-2017 03:25 PM
    pca analysis, rprogram
    • Replies: 2
    • Views: 745
    04-17-2017, 11:03 PM Go to last post
  59. auc function simple error

    I am guessing this is a simple issue, I am using pROC and its roc to get auc for my model pred and the y variable. pred came from my cv.LASSO...

    Started by hlsmith‎, 04-14-2017 08:39 AM
    • Replies: 7
    • Views: 897
    04-15-2017, 06:28 AM Go to last post
  60. help with understanding error message

    I"m using the CARET Package to run a few ML algorithims and I"m at the stage where I"m trying to compare them. when I run this: results...

    Started by semidevil‎, 04-13-2017 05:08 PM
    • Replies: 3
    • Views: 831
    04-14-2017, 10:31 AM Go to last post

+ Post New Thread
Page 1 of 68 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 51 ... LastLast

Thread Display Options

Use this control to limit the display of threads to those newer than the specified time frame.

Allows you to choose the data by which the thread list will be sorted.

Order threads in...

Note: when sorting by date, 'descending order' will show the newest results first.

Icon Legend

Contains unread posts
Contains unread posts
Contains no unread posts
Contains no unread posts
More than 15 replies or 300 views
Hot thread with unread posts
More than 15 replies or 300 views
Hot thread with no unread posts
Closed Thread
Thread is closed
Thread Contains a Message Written By You
You have posted in this thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts






Advertise on Talk Stats