search for: goslee

Displaying 20 results from an estimated 924 matches for "goslee".

2011 Jul 29
3
help with plot.rpart
...AD+TAX+ PT+B+LSTAT) Please: Show me the tree. Mark -------- Original Message -------- Subject: Re: [R] help with rpart From: "Stephen Milborrow" <[1]milbo at sonic.net> Date: Fri, July 29, 2011 7:54 am To: <[2]mark at statcourse.com> Cc: <[3]sarah.goslee at gmail.com> Mark, check out my rpart.plot package. See also the PDF vignette that comes with the package. Steve [4]www.milbo.users.sonic.net ------------------------------------------------------------------ Message: 69 Date: Thu, 28 Jul 2011 16:10:35 -0400 From: Sarah...
2012 Feb 02
4
an unusual use for R
...on a project involving creating many detailed weaving patterns, so I wrote R code to automate it. Details here: http://stringpage.com/blog/?p=822 If the overlap between R users and avid tablet weavers turns out to be >> 1, I'll polish it up and turn it into a package. Sarah -- Sarah Goslee http://www.functionaldiversity.org
2016 Apr 15
1
Decision Tree and Random Forrest
...n the response class. Just like my email in the beginning i need the output that looks like if A and if B and if C then %77 it will be D. The examples you provided are just simply not similar. They are different and would take interpretation to get what i need. On Apr 14, 2016 1:26 AM, "Sarah Goslee" <sarah.goslee at gmail.com> wrote: > So. Given that the second and third panels of the first figure in the > first link I gave show a decision tree with decision rules at each split > and the number of samples at each direction, what _exactly_ is your > problem? > > &...
2013 Sep 26
1
R not ploting lines in the correct order
Hi, I have a set of x, y points where x represents dates and y actual values. I am trying to plot a line graph of the data with points on top, but R is connecting the wrong points with lines. Does anyone know how I can rectify this. Please see sample below: x= 24/09/2009 09:13 16/10/2009 11:17 24/10/2009 21:43 11/09/2009 18:34 22/08/2009 15:45 10/08/2009 00:30 14/08/2009 14:52 24/09/2009
2018 Mar 17
3
length of 'dimnames' [2] not equal to array extent- For Correlation Plot
...346300L, 672000L, 729000L, 470800L, 423000L, 72184L, 368022L, 1037500L), .Dim = c(10L, 3L), .Dimnames = list(NULL, c("AGE", "OLD_CAR_PURCHASE_YRS", "Total.Spend.With.Maruti"))) Please advice if this would help. Thank you. Shivi On Sat, Mar 17, 2018 at 8:45 PM, Sarah Goslee <sarah.goslee at gmail.com> wrote: > I'm assuming you are using the corrplot package. > > If so, your data object does need to be a matrix, not a data frame. > Since it's already a data frame, your line of code: > > as.matrix(as.data.frame(CR1)) > > doesn'...
2011 Jul 29
1
help with predict.rpart
...= TRUE) ? library(rpart) ? fit=rpart (MV~ CRIM+ZN+INDUS+CHAS+NOX+RM+AGE+DIS+RAD+TAX+ PT+B+LSTAT) predict(fit,data[4,]) plot only reveals part of the tree in contrast to the results on obtains with CART or C5 -------- Original Message -------- Subject: Re: [R] help with rpart From: Sarah Goslee <sarah.goslee at gmail.com> Date: Fri, July 29, 2011 7:48 am To: mark at statcourse.com Cc: r-help at r-project.org Mark, The R-help list is not telepathic. I asked entirely reasonable follow-up questions intended to elicit from you a more extensive explanation of your problem. On Fri, Jul...
2012 Dec 05
3
data manipulation between vector and matrix
Dear list, I was curious how to subtract a vector from matrix? Say, I have mat <- matrix(1:40, nrow=20, ncol=2) x <-c(1,2) I want, x-mat[1,] and x-mat[2,], and so on... Basically, subtract column elements of x against column elements in mat. But x-mat won't do it. Thanks, Mike [[alternative HTML version deleted]]
2016 Apr 15
0
Decision Tree and Random Forrest
.... Just like my email in > the beginning i need the output that looks like if A and if B and if C then > %77 it will be D. The examples you provided are just simply not similar. > They are different and would take interpretation to get what i need. > On Apr 14, 2016 1:26 AM, "Sarah Goslee" <sarah.goslee at gmail.com> wrote: > > > So. Given that the second and third panels of the first figure in the > > first link I gave show a decision tree with decision rules at each split > > and the number of samples at each direction, what _exactly_ is your > &...
2018 Mar 17
0
length of 'dimnames' [2] not equal to array extent- For Correlation Plot
...23000L, 72184L, 368022L, > 1037500L), .Dim = c(10L, 3L), .Dimnames = list(NULL, c("AGE", > "OLD_CAR_PURCHASE_YRS", "Total.Spend.With.Maruti"))) > > Please advice if this would help. > > Thank you. Shivi > > On Sat, Mar 17, 2018 at 8:45 PM, Sarah Goslee <sarah.goslee at gmail.com> > wrote: > >> I'm assuming you are using the corrplot package. >> >> If so, your data object does need to be a matrix, not a data frame. >> Since it's already a data frame, your line of code: >> >> as.matrix(as.data...
2016 Apr 14
3
Decision Tree and Random Forrest
...em. The examples are sort of similar. You just provided links to general info about trees. Sent from my Verizon, Samsung Galaxy smartphone<div> </div><div> </div><!-- originalMessage --><div>-------- Original message --------</div><div>From: Sarah Goslee <sarah.goslee at gmail.com> </div><div>Date: 4/13/16 8:04 PM (GMT-06:00) </div><div>To: Michael Artz <michaeleartz at gmail.com> </div><div>Cc: "r-help at r-project.org" <R-help at r-project.org> </div><div>Subject: Re: [...
2013 Apr 03
5
Can package plyr also calculate the mode?
I am trying to replicate the SAS proc univariate in R. I got most of the stats I needed for a by grouping in a data frame using: all1 <- ddply(all,"ACT_NAME", summarise, mean=mean(COUNTS), sd=sd(COUNTS), q25=quantile(COUNTS,.25),median=quantile(COUNTS,.50), q75=quantile(COUNTS,.75), q90=quantile(COUNTS,.90), q95=quantile(COUNTS,.95), q99=quantile(COUNTS,.99) )
2017 Jun 30
3
Predict
...a=seq(as.Date("2009-12-01"),by="weeks",length=11) axis(1, at = a, labels = format(a, "%Y %b %d"), cex.axis=0.6) #Error :$ operator is invalid for atomic vectors Thanks Ahmed Attia, Ph.D. Agronomist & Soil Scientist On Fri, Jun 30, 2017 at 10:37 AM, Sarah Goslee <sarah.goslee at gmail.com> wrote: > There are a bunch of things wrong here, although without a > reproducible example I can't really fix most of them. > > - You're overwriting SH within the loop. > - You're running the regression 2641 times, even though the result...
2012 Jan 20
4
extract fixed width fields from a string
...there, e.g., frame 1,AB 2,BCD will turn into 1,1,1,0,0 2,0,1,1,1 however this would work only if the number of different field values is manageable. What do people do? Can I have a columns of "sets" in data frame? Does R support the "set" data type? Thanks! PS. thanks to Sarah Goslee who answered my previous question in so much detail! -- Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X 11.0.11004000 http://camera.org http://openvotingconsortium.org http://iris.org.il http://mideasttruth.com http://memri.org http://honestreporting.com Don't take life too...
2012 Jul 10
0
R-help Digest, Vol 113, Issue 13
...ecific > than "Re: Contents of R-help digest..." > > > Today's Topics: > > 1. how can I show the xlab and ylab information while using > layout (Jie Tang) > 2. Re: how can I show the xlab and ylab information while using > layout (Sarah Goslee) > 3. Re: Extracting arithmetic mean for specific values from > multiple .txt-files (Rui Barradas) > 4. Re: How to use external image with R plot? (Michael Sumner) > 5. Re: is it possible to insert a figure into into another new > figure by r script (Thomas...
2013 Mar 28
2
Can R read in .xyz files
Hi, Can R read in .xyz files? If so, what is the package, thanks -- Shane [[alternative HTML version deleted]]
2012 Feb 10
4
function arrows.circular not working
I have started using the circular package but it is not recognizing the function arrows.circular. I attempted to use the example provided in the circular manual. Here is the example code using the circular package: plot(rvonmises(10, circular(0), kappa=1)) arrows.circular(rvonmises(10, circular(0), kappa=1)) arrows.circular(rvonmises(10, circular(0), kappa=1), y=runif(10), col=2)
2011 Dec 09
5
Making outregs in R
Dear r-Gods! I am interesting in making an equivalent command like outreg in stata where I get all my 8 regressions in one table. Does R have an easy command to that? MVH Dave [[alternative HTML version deleted]]
2012 Mar 12
3
Finding the median
Hi just a quick question in which I must use the "function and return" part of R. If I was asked to define a function called "median" where the function has a single argument x and returns the median value of a vector. How would I go about saying the median = element x in terms of n (say (n + 1)/2 or whatever it would be) if there is an even amount of elements, or x in terms
2007 Feb 13
5
Fatigued R
Hi R, Please solve my problem........... I am extracting Bloomberg data from R, in a loop. R is getting fatigued by doing this process and gives some errors. I introduced sleep function. Doing this sometimes I get the results and sometimes not. I even noticed that if I give complete rest for R (don't open R window) for 1 day and then run my code with the sleep function, then the
2011 Aug 01
1
Inserting column in between -- "better" way?
...ames. > > Try this instead: > > yourframe[,30:51] <- cbind( newcolumn,yourframe[,30:50]) > > Adjust column names after via: > > names(yourframe) [30:51] <- c(newcolname,names(yourframe[30:50]) > > Cheers, > Bert > > On Mon, Aug 1, 2011 at 10:10 AM, Sarah Goslee <sarah.goslee at gmail.com> wrote: >> x <- cbind(x[,1:29], newcolumn, x[,30:ncol(x)]) >> >> On Mon, Aug 1, 2011 at 12:59 PM, Bansal, Vikas <vikas.bansal at kcl.ac.uk> wrote: >>> Dear all, >>> >>> I have a very simple question.I have data f...