Grokbase Groups R r-help August 2011
FAQ

Search Discussions

942 discussions - 3,231 posts

  • Hello R people, I have a "data.frame". Status variable has 3 values. 0- alive, 1- dead and 2- missed Status as a factor have correct levels. Levels and labels output as follows; levels(Adbf$status) ...
    ZcatavZcatav
    Aug 11, 2011 at 2:10 pm
    Aug 12, 2011 at 5:40 pm
  • Hello, TO update R under Ubuntu on my macchine, I downloaded R-2.13.1. When running ./configure, I got the following error message: checking for X... no configure: error: --with-x=yes (default) and ...
    Carol whiteCarol white
    Aug 25, 2011 at 12:27 pm
    Aug 26, 2011 at 4:31 am
  • Hello, It might be an easy question but if you have many variables to fit in the lm function, how do you take all without specifying var1+var2+...+var2100 in the terms parameter in response ~ terms? ...
    Carol whiteCarol white
    Aug 17, 2011 at 1:23 pm
    Jan 12, 2012 at 12:59 pm
  • Dear All. I am Chuan. I am beginner for R.I facing some problem in remove element from vector.I have a vector with size 238 element as follow(a part) [1] 0 18 24 33 ...
    Chuan_zlChuan_zl
    Aug 27, 2011 at 9:31 am
    Aug 30, 2011 at 9:38 am
  • Dear R community, I have a 2 million by 2 matrix that looks like this: x<-sample(1:15,2000000, replace=T) y<-sample(1:10*1000, 2000000, replace=T) x y [1,] 10 4000 [2,] 3 1000 [3,] 3 4000 [4,] 8 6000 ...
    Alex Ruiz EulerAlex Ruiz Euler
    Aug 17, 2011 at 10:53 pm
    Aug 19, 2011 at 8:23 pm
  • Hi everyone, Suppose I have a list named "lst", see below: $sub1 ... $sub1$x ... $sub1$y .... $sub2 ... $sub2$x ... $sub2$y ? $sub3 ... ... ... Now, I want to extract the sub-sublist $y from every ...
    Richard.maRichard.ma
    Aug 4, 2011 at 1:38 am
    Aug 7, 2011 at 3:15 pm
  • Dear All, I have just estimated this model: ----------------------------------------------------------- Logistic Regression Model lrm(formula = Y ~ X16, x = T, y = T) Model Likelihood Discrimination ...
    Paul SmithPaul Smith
    Aug 5, 2011 at 1:47 pm
    Aug 6, 2011 at 2:53 pm
  • Dear R community, I have a general question regarding indexing in multidiemensional arrays. Imagine I have a three dimensional array and I only want to extract on vector along a single dimension from ...
    JannisJannis
    Aug 1, 2011 at 9:38 am
    Aug 4, 2011 at 10:06 pm
  • Dear R-community, I have tried to estimate an accelerated failure time(AFT) and proportional hazard (PH) parametric survival model with time-independent and time-dependent covariates. For that ...
    Javier palaciosJavier palacios
    Aug 19, 2011 at 12:55 pm
    Aug 4, 2012 at 8:37 pm
  • I want to write code that says "If you find an element equal to 4 in this vector for each person in the data set tested separately, then put in 1 for 2 and 2 for 4, else leave the variable as is" ...
    Edward PatzeltEdward Patzelt
    Aug 5, 2011 at 9:15 pm
    Aug 8, 2011 at 6:18 pm
  • Hello, I have a big data.frame, a piece of it as follows. a b c d 1 58009 2010-11-02 0 NA 2 114761 NA 1 2008-11-05 3 184440 NA 1 2009-12-08 4 189372 NA 0 NA 5 105286 NA 0 NA 6 186717 NA 0 NA 7 189106 ...
    ZcatavZcatav
    Aug 3, 2011 at 8:05 am
    Aug 4, 2011 at 2:03 pm
  • Dear R-users I need to calibrate kappa, rho, eta, theta, v0 in the following code, see below. However when I run it, I get: y <- function(kappahat, rhohat, etahat, thetahat, v0hat) {sum(difference(k, ...
    NewbieNewbie
    Aug 18, 2011 at 3:25 pm
    Mar 1, 2012 at 8:06 am
  • Hi R users, suppose I have two vectors, count a 5 b 2 c 8 I know a few ways to fulfill the task. However, I have a huge number of this kind calculations, so I'd like an efficient solution. Thanks -- ...
    Zhenjiang xuZhenjiang xu
    Aug 31, 2011 at 4:45 pm
    Sep 8, 2011 at 11:09 am
  • Why doesn't this work? x = zoo(1:5, as.Date('2001-01-01')+1:5) x[as.Date('2001-01-05')] x[as.Date('2001-01-05')] = 0 x I think this is especially bad because it doesn't cause an error. It lets you do ...
    Gene LeynesGene Leynes
    Aug 29, 2011 at 6:45 pm
    Aug 29, 2011 at 9:26 pm
  • Hello everyone, I have a graph and a segment parallel to the x axis at y=-10, x=0, and bars on it. Now the question is, Is there a way to leave the segment there but let the graph axis start from the ...
    Claudio ZanettiniClaudio Zanettini
    Aug 25, 2011 at 5:07 pm
    Aug 26, 2011 at 5:41 pm
  • Hi all: I have a question about lm on t-test. data(sleep) I wanna perform t-test to test the difference between the 2 groups: I can use: t.test(extra~group) The t.test result shows that:t = -1.8608 ...
    Lao MengLao Meng
    Aug 16, 2011 at 5:25 am
    Aug 18, 2011 at 8:43 am
  • Dear all It is difficult to use round(..., digits=2) on a data frame since one has to first take care to remove non-numeric variables such as 'character' or 'factor': Error in ...
    Liviu AndronicLiviu Andronic
    Aug 10, 2011 at 9:34 am
    Aug 11, 2011 at 6:47 pm
  • Dear List, How can I get R to display error messages, for example, if I try to change to a non-existent directory or try to load a library that is not installed? Currently R is very silent. I did fix ...
    Khadeeja ismailKhadeeja ismail
    Aug 5, 2011 at 11:54 am
    Aug 7, 2011 at 9:53 pm
  • Dear R-users I am trying to understand how Sweave works by running some simple examples. In the example I am working with there is a chunk where the R-commands related to plotting a figure are ...
    Eduardo M. A. M. MendesEduardo M. A. M. Mendes
    Aug 4, 2011 at 7:40 pm
    Aug 7, 2011 at 11:53 am
  • Dear R users, I have been trying to understand what the Weights arguments is doing in the estimation of the parameters when using the Surreg function. I looked through the function's code but I am ...
    Boris BerangerBoris Beranger
    Aug 31, 2011 at 3:48 pm
    Sep 6, 2011 at 10:25 pm
  • My script is the following: library(metafor) yi<-c(-0.1, 0.2, 0.3, 0.4) sei<-c(0.4, 0.2, 0.6, 0.1) vi<-sei^2 studi<-c("A", "B", "C", "D") eventi.c<-c(10, 5, 7, 6) n.c<-c(11, 34, 25, 20) ...
    Paola TellaroliPaola Tellaroli
    Aug 24, 2011 at 11:50 am
    Aug 29, 2011 at 2:57 pm
  • Hi, I am not sure how to fix the following error. LGD <- c(11.6, 12.3, 15.8, 33.1, 43.5, 51.3, 67.3, 84.9) cor (x=(file [1:47231,3:10]), y= rep (LGD, 47231), method = "pearson") Error in cor(x = ...
    ChintanuChintanu
    Aug 15, 2011 at 2:02 am
    Aug 15, 2011 at 5:15 am
  • Dear R-helpers, sorry if this is obvious, but I can't find this in the documentation. I am using Sweave, and have some code that does not actually work - but I want to include it anyway, including ...
    Remko DuursmaRemko Duursma
    Aug 9, 2011 at 1:48 am
    Aug 9, 2011 at 12:32 pm
  • Hi R users, I have a list: $A [1] "a" "b" "c" $B [1] "b" "c" $C [1] "c" I want to convert it to a lowercase-to-uppercase list like this: $a [1] "A" $b [1] "A" "B" $c [1] "A" "B" "C" In a word, I want ...
    Zhenjiang xuZhenjiang xu
    Aug 5, 2011 at 4:05 pm
    Aug 8, 2011 at 8:51 pm
  • Hi, Can someone help me out to create a (for?) loop for the following procedure: x=rnorm(250,0,0.02) library(timeSeries) x=timeSeries(x) P00 loss=-P*x loss v95=quantile(loss,0.95) v95 I would like ...
    UnitRootUnitRoot
    Aug 5, 2011 at 3:35 pm
    Aug 5, 2011 at 6:41 pm
  • Hello there, I�m computing the total value of an order from the price of the order items using a �for� loop and the �ifelse� function. I do this on a large dataframe (close to 1m lines). The ...
    Caroline FaisstCaroline Faisst
    Aug 3, 2011 at 1:25 pm
    Aug 4, 2011 at 2:10 pm
  • I don't find how to do what I need to do in Dalgaard or 'R Cookbook', so I'm asking here. I have a data frame with water chemistry data and I want to start exploring these data. There are three ...
    Rich ShepardRich Shepard
    Aug 30, 2011 at 9:00 pm
    Aug 30, 2011 at 11:10 pm
  • Hi all, I would like to use R in order to generate a Heatmap/Choropleth overlaid on the UK map. Can someone please help with finding the right package/code? Any help is much appreciated. Best, Reza
    Reza Salimi-KhorshidiReza Salimi-Khorshidi
    Aug 25, 2011 at 2:00 pm
    Aug 30, 2011 at 4:15 pm
  • Hello, I'd like to rank rows of a data frame similar to what rank() does for vectors. However, ties should be broken by columns that I specify. If it is not possible to break a ties (because the row ...
    Sebastian BauerSebastian Bauer
    Aug 24, 2011 at 3:09 pm
    Aug 29, 2011 at 5:56 pm
  • Hello all: Friend told me that we can download the stock historical quote from Yahoo site by R! Could you tell me that is true or not, how to do that? Thanks! -- View this message in context ...
    YuminYumin
    Aug 25, 2011 at 10:20 pm
    Aug 29, 2011 at 11:16 am
  • Hi all, I'm trying to do model reduction for logistic regression. I have 13 predictor (4 continuous variables and 9 binary variables). Using subject matter knowledge, I selected 4 important ...
    KhosodaKhosoda
    Aug 17, 2011 at 3:12 pm
    Aug 20, 2011 at 1:15 pm
  • I have a dataset and a list of labels. I simply want to apply the labels to the variables, all at once. The only way I was able to do it was using a loop: for (i in 1:length(data)) label(data[,i]) <- ...
    Monsieur DoMonsieur Do
    Aug 15, 2011 at 7:53 pm
    Aug 20, 2011 at 12:57 am
  • Dear all, I am using the following code to write the plot to an eps format postscript(file="test.eps",horizontal=FALSE) ...
    AlaiosAlaios
    Aug 16, 2011 at 5:32 pm
    Aug 19, 2011 at 1:35 pm
  • Dear all How does one convert a "non-symmetric" list to a vector? See below: [[1]] [1] "a" "b" "c" "d" "e" [[2]] [1] "f" "g" "h" "i" "j" [[3]] [1] "k" "l" [1] "c(\"a\", \"b\", \"c\", \"d\", \"e\")" ...
    Liviu AndronicLiviu Andronic
    Aug 10, 2011 at 6:58 pm
    Aug 11, 2011 at 8:13 pm
  • Hello, This is my first project in R, so I'm trying to work 'the R way', but it still feels awkward sometimes. The problem that I'm facing right now is that I need to convert a data.frame into a ...
    Frederic FFrederic F
    Aug 10, 2011 at 12:58 am
    Aug 10, 2011 at 7:55 pm
  • Hello, I'd like to perform a regression using MCMCregress (MCMCpack). One variable therefore should be a function rather than a variable: I want to use X as an input and X should be defined as a ...
    Johannes RadingerJohannes Radinger
    Aug 10, 2011 at 11:28 am
    Aug 10, 2011 at 6:42 pm
  • Hello! I have a data set: set.seed(123) y<-data.frame(week=seq(as.Date("2010-01-03"), as.Date("2011-01-31"),by="week")) y$var1<-c(1,2,3,round(rnorm(54),1)) y$var2<-c(10,20,30,round(rnorm(54),1)) # ...
    Dimitri LiakhovitskiDimitri Liakhovitski
    Aug 4, 2011 at 3:24 pm
    Aug 5, 2011 at 1:11 pm
  • Does anyone know how to create a 3D Bargraph using ggplot2/qplot. I don't mean 3D as in x,y,z coordinates. Just a 2D bar graph with a 3D shaped bard. See attached excel file for an example. Before ...
    WwreithWwreith
    Aug 2, 2011 at 6:39 pm
    Aug 5, 2011 at 10:24 am
  • hi, r users i have a problem with KNN. i have 2 datasets, X0 and X1. and for every instances in the dataset X1, i want to find the nearest neighbour(1nn) in the dataset X0. and i dont have the true ...
    JiligualaJiliguala
    Aug 31, 2011 at 2:35 pm
    Sep 2, 2011 at 2:50 pm
  • Hello, Does anyone know how to convert this: [1] "a" [2] "b" [3] "c" To: "a b c" In other words, I need to convert a character vector to a single string with carriage returns for each row ...
    Ben qantBen qant
    Aug 29, 2011 at 11:56 pm
    Aug 30, 2011 at 6:09 pm
  • Hello everyone, I was asked to repost this again, sorry for any inconvenience. I'm looking replacement for ddply function from plyr package. Function allows to apply function by category stored in ...
    AdamMarczakAdamMarczak
    Aug 24, 2011 at 4:25 pm
    Aug 30, 2011 at 11:01 am
  • I R-users, I am trying to find the way to manipulate a character string to select a 4 digit number after some specific word/s. Example: mytext <- "I do not want the first number 1234, but the second ...
    Lorenzo CattarinoLorenzo Cattarino
    Aug 25, 2011 at 11:00 pm
    Aug 26, 2011 at 12:57 pm
  • Greetings all, I'm porting an algorithm from MATLAB to R, and noticed some minor discrepancies in small decimal values using rowSums and colSums which are exacerbated after heavy iteration and log ...
    Daniel LaiDaniel Lai
    Aug 23, 2011 at 7:17 pm
    Aug 24, 2011 at 9:26 am
  • Hello, I'm having trouble figuring out how to calculate a p-value for a 1-tailed test of beta_1 in a linear model fit using command lm. My model has only 1 continuous, predictor variable. I want to ...
    Andrew CampomizziAndrew Campomizzi
    Aug 19, 2011 at 10:20 pm
    Aug 22, 2011 at 5:40 pm
  • Dear R-users, I have two questions regarding validation and calibration of Survival regression models. 1. I am trying to calibrate and validate a cox model using val.surv. here is my code ...
    Salvo MacSalvo Mac
    Aug 20, 2011 at 7:32 pm
    Aug 21, 2011 at 5:01 pm
  • Hi all, I have a data.frame like following A<-c('d0','d0','d1','d1','d2','d2') B<-rep(c('control','sample'),3) C<-c(rep(100000,2),200,300,400,500) dataframe<-data.frame(A,B,C) I want to reshape the ...
    WendyWendy
    Aug 20, 2011 at 3:04 pm
    Aug 21, 2011 at 12:32 pm
  • Hello, I have a dataset with an Id columns like: 4/3003 55/333 66/22 I want to put leading zeros to get: 00000004/3003 000000055/333 0000000066/22 How can I solve this? Thanks Vasco Cadavez
    Vasco CadavezVasco Cadavez
    Aug 19, 2011 at 3:12 pm
    Aug 20, 2011 at 12:09 am
  • Dear all How does one resolve the variance between the actual availability of data sets in the default implementation with those mentioned in the documentation? I am unable to attach some of the ...
    Sierra BravoSierra Bravo
    Aug 15, 2011 at 4:33 am
    Aug 15, 2011 at 9:53 am
  • I want to implement the following algorithm in R: I want to split my data, use a t test to compare both means of the groups to see if they significantly differ from each other. If this is a yes (p < ...
    Marina de WolffMarina de Wolff
    Aug 11, 2011 at 9:17 am
    Aug 15, 2011 at 8:33 am
  • Hey, I have a set of income data which I'd like to fit to a gamma distribution. How can I estimate the two parameters of the gamma distribution for a vector, e.g. c(2039L, 2088L, 5966L, 2353L, 1966L, ...
    Alexander EngelhardtAlexander Engelhardt
    Aug 6, 2011 at 7:14 pm
    Aug 8, 2011 at 1:47 am
Group Navigation
period‹ prev | Aug 2011 | next ›
Group Overview
groupr-help @
categoriesr
discussions942
posts3,231
users808
websiter-project.org
irc#r

808 users for August 2011

David Winsemius: 213 posts R. Michael Weylandt: 116 posts Uwe Ligges: 83 posts Dennis Murphy: 70 posts Duncan Murdoch: 63 posts Joshua Wiley: 58 posts Jim Holtman: 57 posts Jean V Adams: 50 posts Petr PIKAL: 48 posts Bert Gunter: 42 posts Jorge I Velez: 33 posts Peter dalgaard: 32 posts Ista Zahn: 30 posts Rolf Turner: 27 posts Frank Harrell: 26 posts Jim Lemon: 26 posts Prof Brian Ripley: 26 posts Jeff Newmiller: 25 posts Ben Bolker: 24 posts Daniel Malter: 23 posts
show more
Archives