Re: [R] How to suppress default legend in plot.cuminc()

2013-05-16 Thread rob
works for you, Rob -- View this message in context: http://r.789695.n4.nabble.com/How-to-suppress-default-legend-in-plot-cuminc-tp4664305p4667170.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https

Re: [R] Latin Hypercube Sampling when parameters are defined according to specific probability distributions

2017-05-27 Thread Rob C
rate=exponential_rate) hist(Y[,1], breaks=10) # you can transform the other marginals as required and then assess function sensitivity model_function <- function(z) z[1]*z[2] + z[3] apply(Y, 1, model_function) # now, trying to use pse library(pse) q <- lis

Re: [R] Latin Hypercube Sampling when parameters are defined according to specific probability distributions

2017-05-30 Thread Rob C
Latin hypercube? This is a more difficult question. In some ways, the sample is still a Latin hypercube since it was drawn that way. But once the sample has been discretized into the distance classes, then it loses the latin property of having only one sample per "row". It might be clo

[R] rgdal installation with two versions of GDAL

2015-04-21 Thread Rob Skelly
ng the 1.11.2 libs into /usr/local, where it works fine. So, the question is, how to I convince R to use the new library search path? I'm on xubuntu, and R is installed using apt. Thanks, Rob [[alternative HTML version deleted]] __ R-hel

Re: [R] rgdal installation with two versions of GDAL

2015-04-22 Thread Rob Skelly
on R-devel and > questions about rgdal on R-sig-geo. > Apologies. I'll ask there next time. Rob [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/list

[R] GenMatch providing different results

2014-12-16 Thread Rob Wood
an anyone point me in the right direction to diagnose my problem? Thanks, Rob. -- View this message in context: http://r.789695.n4.nabble.com/GenMatch-providing-different-results-tp4700836.html Sent from the R help mailing list archive at Nabble.com. ___

[R] P-value from Matching

2015-02-15 Thread Rob Wood
Hi all, When using the match command from the matching package, the output reports the treatment effect, standard error, t-statistic and a p-value. Which test is used to generate this p-value, or how us it generated? Thanks, Rob. -- View this message in context: http://r.789695.n4

Re: [R] P-value from Matching

2015-02-16 Thread Rob Wood
Hi Peter, That was my first port of call before I posted this thread. Unfortunately, it does not seem to explicitly state which test is used or how the p-value is calculated. Thanks, Rob. -- View this message in context: http://r.789695.n4.nabble.com/P-value-from-Matching-tp4703309p4703345

[R] How to suppress console output when using choose.dir()?

2016-01-09 Thread Rob Grant
to be running. 22:07:18.873##ERR##|9824|ACloudToBeSynced.cpp:80:CACloudToBeSynced::IsMember Of| CCDIGetSyncState for syncbox fail rv -9055 ... Have tried sink(), invisible(), options(echo = FALSE), capture.output(). None working for me. Regards, Rob Grant [[alternative HTML version de

Re: [R] How to suppress console output when using choose.dir()?

2016-01-11 Thread Rob Grant
Thank you. Found uninstalling PC bloatware 'Acer Portal' rectified the problem. -Original Message- From: Uwe Ligges [mailto:lig...@statistik.tu-dortmund.de] Sent: Sunday, 10 January 2016 6:51 PM To: Rob Grant; r-help@r-project.org Subject: Re: [R] How to suppress console o

Re: [R] JSON data in data frame

2017-01-14 Thread Rob Baer
Try this: # get weather data library(jsonlite) dat<- fromJSON('http://api.openweathermap.org/data/2.5/group?id=524901,703448,2643743&units=metric&appid=ec0313a918fa729d4372555ada5fb1f8') tab <- dat$list #look at what we get class(tab) names(tab) ncol(tab) nrow(tab) tab[,c("clouds","wind","name")

[R] order list of date (bug?)

2017-01-20 Thread rob vech
uot; "2016-03-27 02:35:50" the last two terms should be before (note that CET is missing). if I change "2016-03-27 02:05:50" and "2016-03-27 02:35:50" to something like "2016-03-27 01:05:50" and "2016-03-27 01:35:50" it seems to work. It seems to

Re: [R] order list of date (bug?)

2017-01-26 Thread rob vech
Hi William, asking to the r-devel list I resolved the problem! It depends from the timezone (tz param) that I didn't specified and so R automatically uses my local time and considers also the daylight saving time (that comes at 2:00 at my position). As my dates are in solar time, I specified the

Re: [R] TextMate and R

2008-07-22 Thread Rob Goedman
bundle installed, you can send an entire file or a selection to R. And it offers several other features. Rob On Jul 22, 2008, at 2:49 PM, Angelo Scozzarella wrote: Hi, how can I use TextMate as editor for R? Thanks Angelo Scozzarella __ R-help@r

Re: [R] Integrating R and Textmate

2008-07-25 Thread Rob Goedman
Art, Could it be the case TextMate is activating the wrong version of R (2.6 vs. 2.7.1). Are you using R.app? If so, and if the R.app is in the dock, does the correct R dance when you send a file to R without R running? Rob On Jul 24, 2008, at 3:07 PM, Arthur Roberts wrote: To Whom

[R] parse and eval character vector

2008-08-26 Thread Rob Foxall
2, and 3 and I don't know how to extract the numeric elements from here. So, can I either use lapply as above and somehow get the information I need out of "temp2" (I've tried using "unlist" but had no success), or is there some other function that I can apply to my char

Re: [R] parse and eval character vector

2008-08-26 Thread Rob Foxall
That's great, thanks. I can live with the warnings! Cheers, Rob On Tue, Aug 26, 2008 at 4:49 PM, ONKELINX, Thierry <[EMAIL PROTECTED]> wrote: > > Just use as.numeric. Non numeric will be NA. So the solution of your > problem is na.omit(as.numeric(temp1))

[R] RODBC missing values in integer columns

2010-02-16 Thread Rob Forler
Hello, We are having some strange issues with RODBC related to integer columns. Whenever we do a sql query the data in a integer column is 150 actual data points then 150 0's then 150 actual data points then 150 0's. However, our database actually has numbers where the 0's are filled in. Furthermo

Re: [R] RODBC missing values in integer columns

2010-02-16 Thread Rob Forler
r_Ver "09.00.0001" ODBC_Ver "03.52.0000" Server_Name "dbname" On Tue, Feb 16, 2010 at 11:39 AM, Rob Forler wrote: > Hello, > > We are having some strange issues with RODBC related to integer columns. > Whenever we do a sql query the dat

[R] Legend Text Font Size

2010-02-16 Thread Rob Helpert
Hi. I have a plot containing a large number of lines. I have placed a legend in the plot, but with so many lines, the legend takes up a lot of space. I have tried to reduce the spacing between the lines using the legend parameter x.intersp=0.7, but this does not compress the legend enough. Is t

Re: [R] RODBC missing values in integer columns

2010-02-16 Thread Rob Forler
It turns out that in the sqlQuery I must set rows_at_time =0 to get rid of this problem. Does anyone have any idea why this might be? On Tue, Feb 16, 2010 at 12:52 PM, Rob Forler wrote: > some more info > > t(t(odbcGetInfo(connection))) > [,1] > DBMS_Name

[R] relative file path

2010-02-22 Thread Rob Forler
Hello, Is there a way to find where a script is located within a script? getwd() doesn't do what I want because it depends on where R was called from. I want something like source("randomFile") and within randomFile there is a function called whereAmI() which returns c:\blah\blah2\randomFile.R In

Re: [R] relative file path

2010-02-22 Thread Rob Forler
oun...@r-project.org] On Behalf Of Duncan Murdoch > > Sent: Monday, February 22, 2010 1:49 PM > > To: Rob Forler > > Cc: r-help@r-project.org > > Subject: Re: [R] relative file path > > > > On 22/02/2010 3:44 PM, Rob Forler wrote: > > > Hello, > &g

[R] RODBC connection name

2010-02-24 Thread Rob Forler
7;t sure if the connection can be automatically killed. We are able to set this with our perl ODBC interfaces via a metadata tag called appname, but I'm not entirely sure how or if this is available in RODBC. Thank you for your time, Rob [[alternative

Re: [R] RODBC connection name

2010-02-24 Thread Rob Forler
Hello, Thank you for the response, but I do not have the command called handle in my linux version. Also it isn't clear to me that you could set the name before you do the connection? Thanks, Rob On Wed, Feb 24, 2010 at 9:10 AM, Gabor Grothendieck wrote: > Use the sysinternals handle

Re: [R] Odp: How to read percentage and currency data?

2010-02-24 Thread Rob Forler
This seems like a case where you should have a column that is "Currency" or "CurrencyKey". You can then do proper sql like queries on the data and convert into a base currency or something to do column wise operations. A column of data should be somehow "consistent" within some view. Currently yo

[R] dramatic speed difference in lapply

2010-02-26 Thread Rob Forler
ot;A"], na.rm=T))); proc.time()-temp user system elapsed 16.346 65.059 81.680 Can anyone explain to me why there is a 4x time difference? I don't want to have to hardcore into the recursion function, but if I have to I will. Thanks, Rob [[alternative HTML version

Re: [R] dramatic speed difference in lapply

2010-02-26 Thread Rob Forler
I'm trying to do data grouping like you said. I will look into data.table package and I will also consider using a matrix instead of a data frame. Thank you for your responses. Thanks, Rob On Fri, Feb 26, 2010 at 3:21 PM, Tom Short wrote: > I'm sorry, Rob, but that code is den

[R] data.table evaluating columns

2010-03-02 Thread Rob Forler
list(as.matrix(frame[,names[i], with=F] )< 3) ] } but then I lose the other columns and I don't have the correct name for the new column. Anyone have any suggestions on the best approach to doing this? Thanks, Rob [[alternative HTML version deleted]] __

Re: [R] data.table evaluating columns

2010-03-03 Thread Rob Forler
-forge.r-project.org/pipermail/datatable-commits/ doesn't appear to be correct. Or just directly sending an email to all of you? Thanks again, Rob On Wed, Mar 3, 2010 at 6:05 AM, Matthew Dowle wrote: > > I'd go a bit further and remind that the r-help posting guide is clear : >

Re: [R] Three most useful R package

2010-03-03 Thread Rob Forler
RODBC data.table On Wed, Mar 3, 2010 at 3:29 AM, Tony B wrote: > I only really need the base packages, but otherwise I suppose the most > useful for me are: > > (1) RCurl > (2) plyr > (3) XML > > On 2 Mar, 20:13, Ralf B wrote: > > Hi R-fans, > > > > I would like put out a question to all R user

Re: [R] Three most useful R package

2010-03-03 Thread Rob Forler
Sorry to clear up the reasons why: RODBC because it allows me to seamlessly interact with all the databases at the place I work. And data.table because it does aggregation about 50x times faster than plyr (which I used to use a lot). Thanks, Rob On Wed, Mar 3, 2010 at 7:07 AM, Rob Forler

Re: [R] Hi

2010-03-04 Thread Rob Forler
a quick google of "fminsearch in R" resulted in this http://www.google.com/search?q=fminsearch+in+R&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a take a look. there appears to be a function called optim that you can look at http://sekhon.berkeley.edu/stats/html/optim.htm

[R] Operating System Variable

2010-03-05 Thread Rob Helpert
Hi. Is there an easy way (analogous to the $^O variable in perl) to find out what operating system R is currently using? Thanks. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://w

Re: [R] Operating System Variable

2010-03-05 Thread Rob Helpert
Excellent! Thank you. On Fri, Mar 5, 2010 at 9:52 AM, Henrique Dallazuanna wrote: > Try: > > .Platform$OS.type > > On Fri, Mar 5, 2010 at 11:45 AM, Rob Helpert wrote: >> Hi. >> >> Is there an easy way (analogous to the $^O variable in perl) to find >> o

[R] confused by classes and methods.

2010-03-08 Thread Rob Forler
hing like > statList = list(new("statisticInfo")) > updateStatistic(statList[[1]],3) > statList[[1]] #this would then have the updated one and not the old one. Anyways, The main reason I'm asking these questions is because I can't really find a good online resource for this.

[R] rbind, data.frame, classes

2010-03-15 Thread Rob Forler
gt; data.frame(rbind(vec1, vec2))[,1] #this outputs as a vector which is what I want from the above list rbind. is it possible to easily do the above? I read over rbind but it doesn't seem to have any of the above fixes. Is there a different function that does this t

Re: [R] rbind, data.frame, classes

2010-03-15 Thread Rob Forler
a hah, that works :) simple but sweet, thanks, Rob On Mon, Mar 15, 2010 at 1:59 PM, Henrique Dallazuanna wrote: > Try this: > > do.call(rbind, lapply(list(list1, list2), as.data.frame)) > > On Mon, Mar 15, 2010 at 3:42 PM, Rob Forler wrote: > > Hi, > > > > Th

Re: [R] Reg GARCH+ARIMA

2010-03-18 Thread Rob Forler
on n-(prediction sample set length-1). predict 1 step ahead and compare to the next value. rinse and repeat. -Rob On Thu, Mar 18, 2010 at 2:59 AM, RAGHAVENDRA PRASAD < raghav.npra...@gmail.com> wrote: > Hi, > > Thanks a lot.It was very useful to me.If i m correct we cant do real time

Re: [R] lpSolve: how to allow variables to become negative

2009-07-02 Thread Rob Helpert
Hi Alicia, I think the trick may be to split b1 into the sum of two non-negative variables. You will then also have to alter your constraints and objective to include the two new variables with negative values in appropriate places, but I believe that this will solve the problem. On Thu, Jul 2,

Re: [R] lpSolve: how to allow variables to become negative

2009-07-02 Thread Rob Helpert
Sorry. Of course, I meant the DIFFERENCE of two non-negative variables. So, for example, write b1 = b1p - b1n, where both b1p and b1n are non-negative. On Thu, Jul 2, 2009 at 4:18 PM, Rob Helpert wrote: > Hi Alicia, > > I think the trick may be to split b1 into the sum of two non

Re: [R] Forecasting - Croston Method Error

2009-07-30 Thread Rob Hyndman
t; > Does anyone know the causes and how to fix this problem? > > Thanks, > Pedro Souto This bug was in a beta version of forecast v1.24 on my website. The bug was corrected in v1.24 of the package uploaded to CRAN last April. Rob Hyndman __

Re: [R] dataframe in loop

2010-03-30 Thread Rob Forler
Wait so basically you want to merge the two data sets on some key value? On Tue, Mar 30, 2010 at 12:30 PM, Muting Zhang wrote: > hello all: > > I would like to thank those who helped me out of the string problem..but > now I got another problem. > I used R to query from SQL and got a list of cr

Re: [R] Code is too slow: mean-centering variables in a data framebysubgroup

2010-04-07 Thread Rob Forler
Leave it up to Tom to solve things wickedly fast :) Just as an fyi Dimitri, Tom is one of the developers of data.table. -Rob On Wed, Apr 7, 2010 at 2:51 PM, Dimitri Liakhovitski wrote: > Wow, thank you, Tom! > > On Wed, Apr 7, 2010 at 3:46 PM, Tom Short wrote: > > Here's h

Re: [R] env() for lme4

2010-04-14 Thread Rob Goedman
Pierre, This question is better asked on R-sig-ME. I updated below call to 'profile(fm...@env)' Regards, Rob On Apr 14, 2010, at 6:28 AM, pnouvellet wrote: > > Hi, > > using lme4a, and the dystuff data, I call profile and get: >> profile(fm1ML) > Error i

[R] logical(0) response from lrm

2010-04-25 Thread Rob James
What causes the error report: logical(0) to arise in the rms function lrm? Here's my data: But both the dependent and the independent variable seem fine... > str(AABB) 'data.frame':1176425 obs. of 9 variables: $ sex : int 1 1 0 1 1 0 0 0 0 0 ... $ faint : int 0 0 0 0 0 0 0 0 0 0

Re: [R] R for Engineering (Mechanical, Industrial , Civil, etc.)

2010-04-27 Thread Rob Goedman
ion/object). The ability to include fortran, C, etc., R's graphical capabilities, including 3D, and R's capabilities/libraries (e.g. different interpolation models) to generate the input files based on survey data and revising the input during iterations were key for me. Regards, Rob O

[R] Fidelity of lattice graphics captured to jpeg or png

2010-04-29 Thread Rob James
I am generating images via lattice from Frank Harrell's RMS package. These images are characterized by coloured lines and grey-scale confidence intervals. I need to port them to Openoffice/etc, and have tried both png and jpeg (at high quality), but in neither format can I subsequently see the

[R] Fidelity of lattice graphics captured to jpeg or png... followup

2010-04-29 Thread Rob James
Subsequent investigations (via GIMP) show that the problem is in OO, and now with the images themselves. Off to the OO forums. Original Message Subject:Fidelity of lattice graphics captured to jpeg or png Date: Thu, 29 Apr 2010 08:05:04 -0700 From: Rob James To

[R] odfWeave & XML error in post-processing

2009-10-08 Thread Rob James
ors XMLParse, and duplicate "Entity" lines is reported several times, then XML or odfWeave packs up its toys, and goes home without an output file. I'd (desperately) love any insights anyone might have. Thanks, Rob __ R-help@r-pro

Re: [R] odfWeave & XML error in post-processing

2009-10-09 Thread Rob James
but.. Now, in search of a cause for the invalid element name error(s). Thanks to Duncan for his help. Duncan Temple Lang wrote: Hi Rob. Without the file content_1.xml or any information from the R call stack (e.g. options(error = recover) and then run the command and dynamically explore the stat

Re: [R] odfWeave & XML error in post-processing

2009-10-10 Thread Rob James
Just to close out my earlier posting, I have identified and resolved the following odfWeave/XML error: xmlParseStartTag: invalid element name I used odfWeave to call various logistic regression models which included the above mentioned variable. odfWeave failed to generate the destina

[R] How to use package-rsm to generate experimental design

2009-11-10 Thread Rob Wang
find enough useful material to get start. It would be appreciated if any one send me useful materials, especially those on how to use the pakage-RSM(Response surface methodoly) to generate experiment design. Thanks! Rob -- View this message in context: http://old.nabble.com/How-to-use-package-r

[R] Moving quantile()?

2009-11-26 Thread Rob Steele
Is there a faster way to get moving quantiles from a time series than to run quantile() at each step in the series? Thanks, Rob __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

[R] Best way to preallocate numeric NA array?

2009-11-26 Thread Rob Steele
or first, which seems wasteful. x <- as.numeric(rep(NA, n)) ## This avoids type conversion but still involves two assignments for ## each element in the vector. x <- numeric(n) x[] <- NA ## This seems reasonable. x <- rep(as.numeric(NA), n) Co

Re: [R] Best way to preallocate numeric NA array?

2009-11-26 Thread Rob Steele
Douglas Bates wrote: > On Thu, Nov 26, 2009 at 10:03 AM, Rob Steele > wrote: >> These are the ways that occur to me. >> >> ## This produces a logical vector, which will get converted to a numeric >> ## vector the first time a number is assigned to it. That seems >

Re: [R] Best way to preallocate numeric NA array?

2009-11-26 Thread Rob Steele
Douglas Bates wrote: > On Thu, Nov 26, 2009 at 10:03 AM, Rob Steele > wrote: >> These are the ways that occur to me. >> >> ## This produces a logical vector, which will get converted to a numeric >> ## vector the first time a number is assigned to it. That seems >

Re: [R] Moving quantile()?

2009-11-26 Thread Rob Steele
Charles C. Berry wrote: > On Thu, 26 Nov 2009, Rob Steele wrote: > >> Is there a faster way to get moving quantiles from a time series than to >> run quantile() at each step in the series? > > > Yes. > > Run > > help.request() > > Since

Re: [R] Moving quantile()?

2009-11-26 Thread Rob Steele
Charles C. Berry wrote: > On Thu, 26 Nov 2009, Rob Steele wrote: > >> Is there a faster way to get moving quantiles from a time series than to >> run quantile() at each step in the series? > > > Yes. > > Run > > help.request() > > Since

Re: [R] .Rhistory in R.app

2009-12-09 Thread Rob Goedman
Maria, Try changing the name of .Rhistory in the Startup preferences to something like .Rosxhistory. Press enter to make sure the change is accepted and try again. The problem is that R itself overwrites the file .Rhistory if it is told to save the workspace. Rob On Dec 9, 2009, at 10:33 AM

[R] Probit cluster-robust standard errors

2009-05-08 Thread Rob Denniker
If I wanted to fit a logit model and account for clustering of observations, I would do something like: library(Design) f <- lrm(Y1 ~ X1 + X2, x=TRUE, y=TRUE, data=d) g <- robcov(f, d$st.year) What would I do if I wanted to do the same thing with a probit model? ?robcov says the input model mus

[R] Extract Stata estimates to use in R

2009-05-08 Thread Rob Denniker
Before you flame me, the reason I am using Stata is that I didn't get a response to my query below, so I have my cluster robust covariance matrix in Stata [one line of code], but now I need to take all those parameter estimates and put them back in R so I can simulate properly. Anyone done this

Re: [R] Extract Stata estimates to use in R

2009-05-08 Thread Rob Denniker
Might as well answer myself in case anyone has this problem again... To save a variance-covariance matrix from Stata as a CSV file that can be read into R, it's something like: regress mpg weight foreign matrix V=e(V) svmat V,names(vvector) outsheet vvector* using vv1.csv, replace > -Origi

[R] Reading large files quickly

2009-05-09 Thread Rob Steele
I'm finding that readLines() and read.fwf() take nearly two hours to work through a 3.5 GB file, even when reading in large (100 MB) chunks. The unix command wc by contrast processes the same file in three minutes. Is there a faster way to read files in R? Thanks! __

Re: [R] Reading large files quickly

2009-05-09 Thread Rob Steele
Thanks guys, good suggestions. To clarify, I'm running on a fast multi-core server with 16 GB RAM under 64 bit CentOS 5 and R 2.8.1. Paging shouldn't be an issue since I'm reading in chunks and not trying to store the whole file in memory at once. Thanks again. Rob Steele wrote

Re: [R] Reading large files quickly

2009-05-10 Thread Rob Steele
At the moment I'm just reading the large file to see how fast it goes. Eventually, if I can get the read time down, I'll write out a processed version. Thanks for suggesting scan(); I'll try it. Rob jim holtman wrote: > Since you are reading it in chunks, I assume that you ar

Re: [R] Reading large files quickly; resolved

2009-05-11 Thread Rob Steele
Rob Steele wrote: > I'm finding that readLines() and read.fwf() take nearly two hours to > work through a 3.5 GB file, even when reading in large (100 MB) chunks. > The unix command wc by contrast processes the same file in three > minutes. Is there a faster way to read files

[R] Block factor as random or fixed effect?

2009-05-13 Thread Rob Knell
ents about not treating block as a random effect if the number of blocks is less than 6 or 7: is this right? Any advice much appreciated Rob Knell School of Biological and Chemical Sciences Queen Mary, University of London 'Phone +44 (0)20 7882 7720 Skype Rob Knell

[R] ANNOUNCEMENT: 20% discount on the most recent R books from Chapman & Hall/CRC!

2009-06-16 Thread Calver, Rob
Take advantage of a 20% discount on the most recent R books from Chapman & Hall/CRC! We are pleased to offer our latest books on R at a 20% discount through our new website. To take advantage of this offer, simply visit http://www.crcpress.com/, choose your titles and insert code 281DW in the

[R] lpSolve lp const.dir

2009-06-17 Thread Rob Helpert
Hi. In the help page for "lp" in package lpSolve, regarding "const.dir" it says: const.dir: Vector of character strings giving the direction of the constraint: each value should be one of "<," "<=," "=," "==," ">," or ">=". (In each pair the two values are identical.) I am having trouble unders

Re: [R] please recommend hands-on books on classification, data-mining and machine learning with R?

2009-06-19 Thread Rob Denniker
Seriously? Did you not receive the reply to the same question from Uwe Ligges at 12:31pm today? You are overfishing the common pool, bro. 2009/6/19 Uwe Ligges : Most of the times it is advisable to get a good book about the statistical concepts (multivariate statistics or data-mining) and anoth

Re: [R] please recommend hands-on books on classification, data-mining and machine learning with R?

2009-06-19 Thread Rob Denniker
Seriously? Did you not receive the reply to the same question from Uwe Ligges at 12:31pm today? You are overfishing the common pool, bro. 2009/6/19 Uwe Ligges : Most of the times it is advisable to get a good book about the statistical concepts (multivariate statistics or data-mining) and anoth

Re: [R] please recommend hands-on books on classification, data-mining and machine learning with R?

2009-06-19 Thread Rob Denniker
Seriously? Did you not receive the reply to the same question from Uwe Ligges at 12:31pm today? You are overfishing the common pool, bro. 2009/6/19 Uwe Ligges : Most of the times it is advisable to get a good book about the statistical concepts (multivariate statistics or data-mining) and anoth

[R] Efficiently create dummy

2009-03-23 Thread Rob Denniker
What's the neat way to create a dummy from a list? The code below is not replicable, but hopefully self-explanatory... d$treatment<-rep(1,length(d)) notreat<-c("AR", "DE", "MS", "NY", "TN", "AK", "LA", "MD", "NC", "OK", "UT", "VA") #i would really like this to work: d$treatment[d$st==any(notre

Re: [R] generalized Poisson regression

2009-03-24 Thread Rob Denniker
Not 100% sure what you are looking for, but have a look at the Generalized Event Count model in the Zelig package. It will also let you fit a Poisson and other event count models by MLE. > -Original Message- > From: azam...@isrt.ac.bd > Sent: Tue, 24 Mar 2009 23:26:59 +0600 > To: r-help

[R] Help pasting string as object name

2009-04-03 Thread Rob Denniker
I have a data frame containing monthly observations of the 'density' of each US state, recorded in variables named "density.AL", "density.AK", "density.AZ", and so on for all 50 states. The data frame (called d) also contains a variable called "Date" which is encoded as a string in the format "J

Re: [R] Help pasting string as object name

2009-04-03 Thread Rob Denniker
t;- paste("d$density", st, sep=".") # easier than mapply etc. > > more importantly, in the for loop you should not be incrementing i > manually (as in a while loop), it's already taken care of by the for{} > construct. > > > > HTH, > > baptiste

[R] Help using smooth.spline with zoo object

2009-04-04 Thread Rob Denniker
Can someone please show me how to smooth time series data that I have in the form of a zoo object? I have a monthly economies series and all I really need is to see a less jagged line when I plot it. If I do something like s <- smooth.spline(d.zoo$Y, spar = 0.2) plot(predict(s,index(d.zoo)),

[R] stata ==> R - error messages

2009-04-24 Thread Rob Bakker
unable to open file: 'No such file or directory' this happens when I use "" What is the problem and how can I solve it? Best regards, Rob Bakker, Amsterdam [[alternative HTML version deleted]] __ R-help@r-project.org ma

Re: [R] stata ==> R - error messages

2009-04-24 Thread Rob Bakker
Dear Duncan, Peter and Jim, Thank you very much!! It worked! Best regards, Rob Bakker 2009/4/24 Duncan Murdoch > On 24/04/2009 7:42 AM, Peter Dalgaard wrote: > >> Jim Lemon wrote: >> >>> Rob Bakker wrote: >>> >>>> Dear Sirs, >>>> I a

Re: [R] stata ==> R - error messages

2009-04-24 Thread Rob Bakker
ps)://", file) : could not find function "choose.file" In addition: Warning messages: 1: '\R' is an unrecognized escape in a character string 2: unrecognized escape removed from "C:\Rklein" The Rklein file is indeed .dta. So what is the next step I can do? Best reg

[R] Confusion going from Stata -> R

2009-04-30 Thread Rob Denniker
Dear list, I am trying to replicate some Stata results but having a tough time doing it in R. The goal is to obtain a difference-in-difference estimate in a model with simple state fixed effects. The "state" variable is a factor, but some levels are missing. It appears that Stata automaticall

[R] value labes Stata vs factors

2009-05-02 Thread Rob Bakker
rning NA What can I do? In addition to means, summary(Rgenmetvl$sex) works perfectly. Best regards, Rob Bakker, beginner in R [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-hel

Re: [R] Trouble installing packages on Macintosh OS-X 10.5.6

2009-05-03 Thread Rob Goedman
John, I noticed yesterday and this morning that the UCLA mirror is not responding reliably right now. Switching to Berkeley (CA 1 in the preferences list in R.app) solved that issue for me. ROb On May 3, 2009, at 6:23 AM, stephen sefick wrote: Maybe the mirror that you are using has

[R] dates from Stata's .dta to R's .Rdata: become character

2009-05-03 Thread Rob Bakker
Dear Sir/Madam, I converted the .dta into .Rdata with the foreign library read.dta. However, when I use fix() I get the message that the dates are discarded. Before fix(), class(dateX) gives 'dates' as class; after fix() class(dateX) gives 'character' Why is that? Best

[R] graph help

2010-01-30 Thread Rob Manley
Hello, I'm fairly new to R and having trouble displaying my data graphically to a publishable quality. I have a multivariate data-set (columns all the same length), 8 environmental variables and 3 species diversity variables. I'm simply trying to display bivariate plots of the environmental variab

Re: [R] LHS random number generator

2021-04-14 Thread Rob C
Shah, I am the maintainer of the lhs package. Please feel free to contact package maintainers directly for help specific to their package. If I understood your request, this is how I would construct the lhs... prior_lhs <- data.frame( name = c("r_mu", "r_sd", "lmp", "gr_mu", "gr_sd", "alpha1"

[R] make install libgfortran.so.5: cannot open shared object file: No such file or directory; conftest.c:1:10: fatal error: jni.h: No such file or directory

2022-11-20 Thread Rob Kudyba
On RHEL 8 with GCC 11.2.0 loaded as a module in a non-standard location I'm the below error with make install. libgfortran.so is definitely in $LD_LIBRARY_PATH, i.e., /path/to/gcc-11.2/lib64 ls -l /path/to/gcc-11.2/lib64/*fortran.so* lrwxrwxrwx 1 rk3199 user20 Mar 24 2022 libgfortran.so -

Re: [R] make install libgfortran.so.5: cannot open shared object file: No such file or directory; conftest.c:1:10: fatal error: jni.h: No such file or directory

2022-11-20 Thread Rob Kudyba
> It should be possible to run R without installing it, as > /path/to/R-4.2.2/bin/R (strictly speaking, as bin/R under the build > directory, if you're building R separately from the source tree). Does > it work? > So far R does seem to be working and I've tested installing some packages. Is there

Re: [R] make install libgfortran.so.5: cannot open shared object file: No such file or directory; conftest.c:1:10: fatal error: jni.h: No such file or directory

2022-11-21 Thread Rob Kudyba
On Sun, Nov 20, 2022 at 2:26 PM Ivan Krylov wrote: > On Sun, 20 Nov 2022 14:03:34 -0500 > Rob Kudyba wrote: > > > /path/to/gcc-11.2/lib is definitely in LD_LIBRARY_PATH when loading > > the GCC 11.2 module. > > > > If using the /path/to/R-4.2.2/etc/ldpaths where

Re: [R] make install libgfortran.so.5: cannot open shared object file: No such file or directory; conftest.c:1:10: fatal error: jni.h: No such file or directory

2022-11-21 Thread Rob Kudyba
> В Mon, 21 Nov 2022 10:19:36 -0500 > Rob Kudyba пишет: > > > I edited the last line to be: > > export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/gcc-11.2/lib64 then > > make install errored with: > > /path/to/R-4.2.2/bin/exec/R: error while loading shared libra

[R] R CMD build: "Error in if (any(update))"

2019-06-09 Thread Rob Foxall
quot;OK", but I am completely stuck as to how to narrow it down further, and Dr. Google has already failed me. Using R version 3.6.0, R tools version 3.5.0.4 (I don't recall if had different versions previous time I built this package in Feb

Re: [R] R CMD build: "Error in if (any(update))"

2019-06-09 Thread Rob Foxall
t; > > Bert Gunter > > "The trouble with having an open mind is that people keep coming along and > sticking things into it." > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > > On Sun, Jun 9, 2019 at 8:40 PM Rob Foxall wrote: > >

[R] Using item difficulties from a fitted Partial Credit Model to predict person abilities in an extended dataset?

2020-06-07 Thread Rob Forsyth
mates for the remaining ~950 observations (at other timepoints) not used to fit the model; and I can't see from the eRm package documentation how to do this? Advice very much appreciated Rob __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and

Re: [R] Using item difficulties from a fitted Partial Credit Model to predict person abilities in an extended dataset?

2020-06-07 Thread Rob Forsyth
OK thanks for the guidance Rob > On 7 Jun 2020, at 16:15, Bert Gunter wrote: > > ⚠ External sender. Take care when opening links or attachments. Do not > provide your login details. > Such package/methodology specific questions may well go unanswered here. They > are es

Re: [R] latin hypercube sampling

2013-02-19 Thread Rob Carnell
al windows() par(mfrow=c(2,2)) apply(t, 2, hist, breaks=50) # these should be the results of the functions windows() par(mfrow=c(2,2)) apply(result, 2, hist, breaks=50) Please feel free to contact me as the package maintainer if you need additional help with lhs. Rob ___

[R] Introductory R - new book

2013-03-14 Thread Rob Knell
like a copy for a review drop me a line. www.introductoryr.co.uk Cheers all Rob Knell __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and pr

[R] Online resources for beginners

2013-03-19 Thread Rob Knell
. Regards Rob Knell __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

[R] RODBC MSSQL query with date - time tag

2013-04-12 Thread Rob Steenburgh
695598 -19.9538670 273.4348 0.15818150 -2.602005 -1.4240593 -28.647099 273.4789 2.970420 How do I properly format the query in RODBC to obtain the results I seek? I was unable to discover a solution in the archives, although it appears I'm not the only one who has struggled wit

[R] Problem with constrained nlsList model

2013-05-14 Thread Rob Forsyth
e order of ~ 100 so I'm not sure why the constrained nls model doesn't converge on at least some occasions? Am I doing something else wrong? Thanks Rob __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

  1   2   >