[R] Problem with fitdistr function

2008-02-09 Thread Aswad Gurjar
Hello, I am using fitdistr function for parameter estimation. When I use fd-fitdistr(V2,gamma) I get following error: Error in optim(x = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, : initial value in 'vmmin' is not finite fd-fitdistr(V2,weibull) Error in optim(x = c(0L, 0L,

Re: [R] Problem with fitdistr function

2008-02-09 Thread Peter Dalgaard
Aswad Gurjar wrote: Hello, I am using fitdistr function for parameter estimation. When I use fd-fitdistr(V2,gamma) I get following error: Error in optim(x = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, : initial value in 'vmmin' is not finite fd-fitdistr(V2,weibull)

[R] waning msg when R is launched

2008-02-09 Thread ronggui
During startup - Warning message: In readChar(con, 5) : can only read in bytes in a non-UTF-8 MBCS locale I don't know what it comes from. It seems like a error thought not a fatal one. Thanks -- HUANG Ronggui Bachelor of Social Work, Fudan University, China Master of sociology, Fudan

Re: [R] waning msg when R is launched

2008-02-09 Thread ronggui
It is from R-2.6.2. On 2/9/08, ronggui [EMAIL PROTECTED] wrote: During startup - Warning message: In readChar(con, 5) : can only read in bytes in a non-UTF-8 MBCS locale I don't know what it comes from. It seems like a error thought not a fatal one. Thanks -- HUANG Ronggui Bachelor

Re: [R] Problem with fitdistr function

2008-02-09 Thread Aswad Gurjar
Can you please elaborate on this with eg if possible? I didn't get you. Thank You. On 2/9/08, Peter Dalgaard [EMAIL PROTECTED] wrote: Aswad Gurjar wrote: Hello, I am using fitdistr function for parameter estimation. When I use fd-fitdistr(V2,gamma) I get following error: Error

Re: [R] Question

2008-02-09 Thread Dieter Menne
Alexander Ovodenko alexander.ovodenko at gmail.com writes: I have recently started learning R. I converted a Stata datafile into an R image file, but I am unable to do anything with the data. You probably forgot to read in the data; converting alone does not help. Try ls() to get a list

Re: [R] waning msg when R is launched

2008-02-09 Thread Prof Brian Ripley
You haven't given us the 'minimal information' the posting guide asks for. Let's guess you are using a Chinese locale on Windows, in which case you cannot use readChar to read non-ASCII data (as the message says). If so, it looks like this occurs when loading a saved workspace, and is just a

[R] scatterplot3d to display text

2008-02-09 Thread mauroyb0
Dear all, I'm looking for a way to display text (label) in a scatterplot3d instead of the default dot. I mean someting like the text() function which can be associated with plot(). Do you think this is possible ? My second question is quite well covered by some threads but I haven't been able

[R] Reading data from a dataframe

2008-02-09 Thread Alexander Ovodenko
Thanks for the replies to my prior question. My problem is that R always says object not found when I enter a variable name into a command. I converted a Stata file into an Rdata file by first loading the foreign package by entering require(foreign) Then I asked R to read the Stata file by

[R] R is not reading(?) my data properly

2008-02-09 Thread Alexander Ovodenko
Thanks for the replies to my prior question. My problem is that R always says object not found when I enter a variable name into a command. I converted a Stata file into an Rdata file by first loading the foreign package by entering require(foreign) Then I asked R to read the Stata file by

Re: [R] Loading Data to R

2008-02-09 Thread John Kane
Have a look at the R Data Import/Export manual on the R website. My simple-minded approach is simply to save the data as a csv file and read it in using read.table or read.csv --- Christine Lynn [EMAIL PROTECTED] wrote: This is the most basic question ever...I haven't used R in a couple

Re: [R] R ver 2.0.1 NA in Probability Vector Error Messages

2008-02-09 Thread ONKELINX, Thierry
Gabriella, First of all I would suggest that you upgrade to a recent R version (2.6.2). Without a reprodicible example of your code it is very hard to examine the problem. Use traceback() to identify were the problem occurs in your code. HTH, Thierry

Re: [R] shortest distance between two point pattern

2008-02-09 Thread huber
Dear Miltinho, there is also the function matchpt in the Biobase package (in Bioconductor) that seems to do what you want (in n dimensions). It's written in C, and the implementation is simple and of complexity n*m. (For larger problems, there are more efficient nearest neighbor search

Re: [R] Subsetting a data.frame degenerates at one column?

2008-02-09 Thread John Kane
I think I understand this. Try str(input) and you will see that input$disk2 in a vector. You can force a data.frame using data.frame(input(,targets)) --- Allen S. Rout [EMAIL PROTECTED] wrote: Greetings. At the moment, I'm applying R to some AIX 'nmon' output, trying to get a handle

Re: [R] Reading data from a dataframe

2008-02-09 Thread Duncan Murdoch
On 09/02/2008 11:20 AM, Alexander Ovodenko wrote: Thanks for the replies to my prior question. My problem is that R always says object not found when I enter a variable name into a command. I converted a Stata file into an Rdata file by first loading the foreign package by entering

Re: [R] R is not reading(?) my data properly

2008-02-09 Thread ONKELINX, Thierry
Alexander, Learn to use the data argument. E.g. plot(rgnpc, incmean, data = pol572a1) Model - lm(incmean ~ rgnpc, data = pol572a1) to get the fitted values: Model$fitted HTH, Thierry PS It seems to me that you might want to read a good introduction into R.

Re: [R] Reading data from a dataframe

2008-02-09 Thread David Winsemius
Alexander Ovodenko [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: Thanks for the replies to my prior question. My problem is that R always says object not found when I enter a variable name into a command. I converted a Stata file into an Rdata file by first loading the foreign package

Re: [R] scatterplot3d to display text

2008-02-09 Thread Uwe Ligges
mauroyb0 wrote: Dear all, I'm looking for a way to display text (label) in a scatterplot3d instead of the default dot. I mean someting like the text() function which can be associated with plot(). Do you think this is possible ? Yes, it is, type: vignette(s3d, scatterplot3d) and take

Re: [R] shortest distance between two point pattern

2008-02-09 Thread huber
PS: ...For larger problems, there are more efficient nearest neighbor search algorithms, but I am not aware whether or where in R. The 'but' subclause was wrong, one place to look at is the yaImpute package and also this thread: http://tolstoy.newcastle.edu.au/R/e4/devel/08/01/0158.html

Re: [R] Reading data from a dataframe

2008-02-09 Thread Duncan Murdoch
On 09/02/2008 11:38 AM, David Winsemius wrote: Alexander Ovodenko [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: Thanks for the replies to my prior question. My problem is that R always says object not found when I enter a variable name into a command. I converted a Stata file into

Re: [R] R is not reading(?) my data properly

2008-02-09 Thread Duncan Murdoch
On 09/02/2008 11:37 AM, ONKELINX, Thierry wrote: Alexander, Learn to use the data argument. E.g. plot(rgnpc, incmean, data = pol572a1) That won't work. The data arg to plot (and most other functions that have one) requires a formula, not a simple specification of x and y. You'd need

Re: [R] Reading data from a dataframe

2008-02-09 Thread David Winsemius
Duncan Murdoch [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: On 09/02/2008 11:38 AM, David Winsemius wrote: Alexander Ovodenko [EMAIL PROTECTED] wrote in snipped Which creates the model and immediately discards it, because no durable object was given the values: But when try to

Re: [R] Loading Data to R

2008-02-09 Thread Henrique Dallazuanna
You need library(gdata) before On 08/02/2008, Wensui Liu [EMAIL PROTECTED] wrote: # READ DATA FROM XLS FILE # xls - read.xls(file = C:/projects/Rintro/Part01/export.xls, sheet = 3, type = data.frame, from = 1, colNames = TRUE) On Feb 8, 2008 3:49 PM, Christine Lynn [EMAIL

Re: [R] Subsetting a data.frame degenerates at one column?

2008-02-09 Thread Henrique Dallazuanna
Try this also: input[targets] On 08/02/2008, Allen S. Rout [EMAIL PROTECTED] wrote: Greetings. At the moment, I'm applying R to some AIX 'nmon' output, trying to get a handle on some disk performance metrics. In case anyone's interested: http://docs.osg.ufl.edu/tsm/pdf/ some of them

Re: [R] When I cbind the POSIXct gets lost

2008-02-09 Thread Ken Spriggs
Gabor - Thanks. I can recreate your example without any problem but I don't understand the relevance. Is turning the result of the cbind() into a dataframe what you're telling me? If so, I tried that and I'm still stuck with the loss of the POSIXct. (If not I'm afraid I missed the point.)

Re: [R] When I cbind the POSIXct gets lost

2008-02-09 Thread Ken Spriggs
Ok, thanks guys! I see what you're sayin' now Gabor. :) mkeller wrote: Ken, not sure, but you might try data.frame(whatever1=x[,1],whatever2=y) this should maintain the classes of the vectors. I'm guessing that y and x are of different classes. From ?cbind: For the default

Re: [R] When I cbind the POSIXct gets lost

2008-02-09 Thread Gabor Grothendieck
The point is don't use cbind -- use data.frame. On Feb 9, 2008 1:20 PM, Ken Spriggs [EMAIL PROTECTED] wrote: Gabor - Thanks. I can recreate your example without any problem but I don't understand the relevance. Is turning the result of the cbind() into a dataframe what you're telling me?

Re: [R] matrix loop

2008-02-09 Thread David Winsemius
John Kane [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: You are trying to create a matrix in the loop Try creating the matrix before the loop m - 1:5 n-1:10 y - matrix(rep(NA, 50), nrow=m) # I think that this might actually work: y - matrix(rep(NA, 50), nrow=max(m)) for(i in

[R] Comparing spatial point patterns - Syrjala test

2008-02-09 Thread jiho
Dear Lists, At several stations distributed regularly in space[1], we sampled repeatedly (4 times) the abundance of organisms and measured environmental parameters. I now want to compare the spatial distribution of various species (and test wether they differ or not), or to compare the

[R] \ll and \gg in expression()

2008-02-09 Thread Michael Kubovy
How do I enter 'much greater than' and 'much less than' symbols in an expression? _ Professor Michael Kubovy University of Virginia Department of Psychology USPS: P.O.Box 400400Charlottesville, VA 22904-4400 Parcels:Room 102Gilmer Hall

Re: [R] [R-sig-Geo] Comparing spatial point patterns - Syrjala test

2008-02-09 Thread milton ruser
Dear Jean, I have no idea of how to solve this issue, but I suggest you write to the authors of spatstat package. I think they could help you very much. Another thing is that there was a threhead on this many times ago. May be that Alan Swanson cold also help you.

Re: [R] \ll and \gg in expression()

2008-02-09 Thread Prof Brian Ripley
On Sat, 9 Feb 2008, Michael Kubovy wrote: How do I enter 'much greater than' and 'much less than' symbols in an expression? Those are not in the Adobe Symbol encoding used for plotmath. Since you have not told us your platform and locale as requested in the posting guide, I don't know if

Re: [R] md5 hash is wrong for 2.6.2 (Windows)

2008-02-09 Thread Duncan Murdoch
On 09/02/2008 4:41 PM, Paul Lynch wrote: Hi, I've downloaded R-2.6.2-win32.exe (base) from two CRAN sites (http://mirrors.ibiblio.org/pub/mirrors/CRAN/ and http://lib.stat.cmu.edu/R/CRAN/) and for both of those sites the expected MD5 hash is reported to be:

[R] md5 hash is wrong for 2.6.2 (Windows)

2008-02-09 Thread Paul Lynch
Hi, I've downloaded R-2.6.2-win32.exe (base) from two CRAN sites (http://mirrors.ibiblio.org/pub/mirrors/CRAN/ and http://lib.stat.cmu.edu/R/CRAN/) and for both of those sites the expected MD5 hash is reported to be: ed512872818707f27ca05f08be7363c2 *R-2.6.2-win32.exe (See, for example,

Re: [R] md5 hash is wrong for 2.6.2 (Windows)

2008-02-09 Thread Duncan Murdoch
On 09/02/2008 4:41 PM, Paul Lynch wrote: Hi, I've downloaded R-2.6.2-win32.exe (base) from two CRAN sites (http://mirrors.ibiblio.org/pub/mirrors/CRAN/ and http://lib.stat.cmu.edu/R/CRAN/) and for both of those sites the expected MD5 hash is reported to be:

Re: [R] Applying lm to data with combn

2008-02-09 Thread AliR
Thank you, can you suggest wht is the shortest way to store the combination with min residual error term? AliR wrote: http://www.nabble.com/file/p15359204/test.data.csv http://www.nabble.com/file/p15359204/test.data.csv test.data.csv Hi, I have used apply to have certian

Re: [R] \ll and \gg in expression()

2008-02-09 Thread Michael Kubovy
On Feb 9, 2008, at 4:41 PM, Prof Brian Ripley wrote: On Sat, 9 Feb 2008, Michael Kubovy wrote: How do I enter 'much greater than' and 'much less than' symbols in an expression? Those are not in the Adobe Symbol encoding used for plotmath. Since you have not told us your platform and

[R] error in the function

2008-02-09 Thread mohamed nur anisah
Dear lists, i want to find the non-overlapping interval values with this code: mysetdiff=function(x,y){ m=length(x) n=length(y) bx = logical(m) by = logical(n) for(i in 1:m){ for(j in 1:n){ if(x[i]=y[j+1]){ bx[i] = T by[j] = T NA=

Re: [R] error in the function

2008-02-09 Thread jim holtman
a quick look at it shows you would be trying to access y[n+1] in the last part of that loop and that is greater than the number of entries in 'y' so you will get an NA and this is not legal for comparisons. On Feb 9, 2008 6:07 PM, mohamed nur anisah [EMAIL PROTECTED] wrote: Dear lists, i want

[R] R on Mac PRO does anyone have experience with R on such a platform ?

2008-02-09 Thread Maura E Monville
I saw there exists an R version for Mac/OS. I'd like to hear from someone who is running R on a Mac/OS before venturing on getting the following computer system. I am in the process of choosing a powerful laptop 17 MB PRO 2.6GHZ(dual-core) 4GBRAM Thank you so much, -- Maura E.M

[R] Which package should I use if I estimate a recursive model?

2008-02-09 Thread Yongfu He
Dear All: I want to estimate a simple recursive mode in R. Which package should I use? Thank you very much in advance. Yongfu He _ [[alternative HTML version deleted]] __

Re: [R] R on Mac PRO does anyone have experience with R on such a platform ?

2008-02-09 Thread Bernard Leemon
I have R on all sorts of Macs, including one's a lot whimpier than the one you are describing and it works great on all of them. gary mcclelland colorado On Sat, Feb 9, 2008 at 6:29 PM, Maura E Monville [EMAIL PROTECTED] wrote: I saw there exists an R version for Mac/OS. I'd like to hear from

[R] Error in optim while using fitdistr() function

2008-02-09 Thread Aswad Gurjar
Hello, I am trying to fit distribution for data consisting of 421 readings.It is basically no of requests arrived per minute.It contains many 0 entries as no of requests.When i use fd-fitdistr(V2,gamma) I get following error: Error in optim(x = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L,

Re: [R] Error in optim while using fitdistr() function

2008-02-09 Thread Aswad Gurjar
Hello, I am trying to fit distribution for data consisting of 421 readings.It is basically no of requests arrived per minute.It contains many 0 entries as no of requests.When i use fd-fitdistr(V2,gamma) I get following error: Error in optim(x = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L,

[R] Error in optim while using fitdistr() function for estimation of parameters

2008-02-09 Thread Aswad Gurjar
Hello, I am trying to fit distribution for data consisting of 421 readings.It is basically no of requests arrived per minute.It contains many 0 entries as no of requests.When i use fd-fitdistr(V2,gamma) I get following error: Error in optim(x = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L,

[R] PCA + Hotelling's T^2

2008-02-09 Thread Pedro Mardones
Dear R users; Is there any function to plot the confidence ellipse (Hotelling's T^2) in an score plot from a PCA? I have the scores off course , say scores for PC1 and PC2, and the value of the Hotelling's T^2 statistic. Thanks for any hint PM __

Re: [R] [R-sig-Geo] Comparing spatial point patterns - Syrjala test

2008-02-09 Thread jiho
On Feb 9, 2008 10:39 PM, milton ruser [EMAIL PROTECTED] wrote: I have no idea of how to solve this issue, but I suggest you write to the authors of spatstat package. I think they could help you very much. Another thing is that there was a threhead on this many times ago. May be that Alan

Re: [R] Error in optim while using fitdistr() function for estimationof parameters

2008-02-09 Thread Aswad Gurjar
Hello, Thank You for response.Yes,It is discrete data.I have tried discrete model using goodfit() test.But that too is not working.Is there any other test for discrete data? When I try goodfit() test for discrete distribution: gf-goodfit(x[[1]],type= nbinomial,method= MinChisq) where x[[1]] is

Re: [R] Error in optim while using fitdistr() function for estimationof parameters

2008-02-09 Thread Bill.Venables
Chenge your model, most likely. You are telling us a) the response is discrete and b) there is a substantial probability that the value is zero. The gamma distributon is a model for a continuous response, your response is integer valued. Perhaps you should consider something the Poisson or