Re: [R] Importing Large Dataset into Excel

2007-12-12 Thread michael watson (IAH-C)
It will be either: 1) line 528 contains a quote character somewhere: ' or " 2) line 528 contains a comma in one of the fields, not as a field separator 3) line 528 contains a comment character # -Original Message- From: [EMAIL PROTECTED] on behalf of Julian Burgos Sent: Wed 12/12/2007 6:

[R] MARS model implementation

2007-12-12 Thread Fernando Sanchez
Hello everybody, I have used sometimes the MARS funcion: data(trees) fit1 <- mars(trees[,-3], trees[3]) I would like to know how to build out of R the MARS function using the information contained in fit1. Thanks in advanced for your help, Fernando

[R] what does cut(data, breaks=n) actually do?

2007-12-12 Thread melissa cline
Hello, I'm trying to bin a quantity into 2-3 bins for calculating entropy and mutual information. One of the approaches I'm exploring is the cut() function, which is what the mutualInfo function in binDist uses. When it's called in the format cut(data, breaks=n), it somehow splits the data into

[R] sstttt....Dicari siapa saja yang mau cari sampingan ...dpt 10% per pcs nya

2007-12-12 Thread menerima pesanan bunga papan
'Sakura Florist" = menerima pesanan khusus bunga papan Menerima pesanan khusus "Bunga Papan'' untuk ucapan selamat pernikahan, ucapan belasungkawa, ucapan untuk peresmian usaha, ulang tahun, dll untuk daerah jabodetabek. Harga mulai Rp.350.000,- Terimakasih, Yenny 021 93606390 0818745955 http://b

[R] [Not R question] using java COM bridge to pass array of double through R(D)COM SetSymbol method

2007-12-12 Thread adschai
Hi My apology as I am really getting stuck. I know that this is not appropriate to post here but I do not know where to turn to. In any case, any thoughts or experience that you could share would be really appreciated. I have a need to use java to access R on windows. And I need to spawn each

Re: [R] Defining the "random" term in function "negbin" of AOD package

2007-12-12 Thread Lesnoff, Matthieu (ILRI)
Dear Caroline > How could I adjust this to function with the "negbin" function? > Specifically, what would I use for the required "random" term? The random argument is used to specify either a global parameter "phi" (random = ~ 1) or specific parameters "phi" for the levels of a given group fact

[R] ggplot2: can not find "current.grobTree()"

2007-12-12 Thread xiechao
Dear All (and Hadley), Is the function "current.grobTree()" implemented in ggplot2? According to the draft ggplot2 book, on page 43, we can get a list of all grobs with current.grobTree(). But when I try that, I get 'Error: could not find function "current.grobTree"'. However, when I try help(cu

Re: [R] Using predict()?

2007-12-12 Thread Daniel Nordlund
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf > Of Uwe Ligges > Sent: Wednesday, December 12, 2007 5:14 AM > To: Zembower, Kevin > Cc: r-help@r-project.org > Subject: Re: [R] Using predict()? > > > > Zembower, Kevin wrote: > > I'm trying to solve a ho

Re: [R] [OT] vernacular names for circular diagrams

2007-12-12 Thread ahimsa campos-arceiz
Two non-eatable examples from Spain and Japan: in Spanish we call them "diagrama de sectores" or "gráfico de sectores". As you can imagine it means "sectors diagram (or graph)". in Japanese it is called 円グラフ (en gurafu), which means "circular graph" a link with its name in other languag

[R] Probelms on using gam(mgcv)

2007-12-12 Thread zhijie zhang
Dear all, Following the help from gam(mgcv) help page, i tried to analyze my dataset with all the default arguments. Unfortunately, it can't be run successfully. I list the errors below. #m.gam<-gam(mark~s(x,y)+s(lstday2004)+s(slope)+s(ndvi2004)+s(elevation)+s(disbinary),family=binomial(logit),

[R] Rd files with unknown encoding?

2007-12-12 Thread Spencer Graves
How can I identify the problem generating a warning in R CMD check for "Rd files with unknown encoding"? Google identified an email from John Fox with a reply from Brian Ripley about this last 12 Jun 2007. This suggests that I may have accidentally entered some possibly non-print

Re: [R] OT: 3d surfaces with transparency

2007-12-12 Thread Ben Bolker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Deepayan Sarkar wrote: > On 12/8/07, Ben Bolker <[EMAIL PROTECTED]> wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Deepayan Sarkar wrote: >>> On 12/8/07, Ben Bolker <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- >>

Re: [R] Importing Large Dataset into Excel

2007-12-12 Thread Moshe Olshansky
One can also do: x <- readLines("newborn edit.csv",n=529) and examine x[528] (or x[529] - depending on whether line 528 was line 528 of the file or line 528 after reading the header line). --- Julian Burgos <[EMAIL PROTECTED]> wrote: > Hi Wayne, > > I'm assuming that you file is really a > com

Re: [R] XML R function description

2007-12-12 Thread Martin Morgan
Teodor -- Nice question! I don't think there is anything exactly like you are looking for. One problem is that in general R function arguments (and return values) are not typed (!) and of course saying in the docs that a function takes a particular type of argument is no guarantee that is the cas

Re: [R] OT: 3d surfaces with transparency

2007-12-12 Thread Deepayan Sarkar
On 12/8/07, Ben Bolker <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Deepayan Sarkar wrote: > > On 12/8/07, Ben Bolker <[EMAIL PROTECTED]> wrote: > >> -BEGIN PGP SIGNED MESSAGE- > >> Hash: SHA1 > >> > >> > >> I would be grateful if anyone had suggestions

Re: [R] Writing a file to the disk

2007-12-12 Thread Richard M. Heiberger
Since your target is a spreadsheet on Windows, consider writing directly to the spreadsheet. Use either the package xlsReadWrite or the RExcel interface which allows you to embed R functions inside Excel cells. Look at the main RExcel/rcom site http://sunsite.univie.ac.at/rcom/ and consider joini

Re: [R] Writing a file to the disk

2007-12-12 Thread Richard M. Heiberger
Since your target is a spreadsheet on Windows, it would make sense to write directly to the spreadsheet. You can use either the xlsReadWrite package, Description: Read and write Excelfiles natively (v97-2003/BIFF8) or RExcel, which allows you to imbed R functions inside Excel cells. Look at the

Re: [R] Adding data labels to Lattice plots

2007-12-12 Thread David Hewitt
> I am new to lattice graphics... > Me too, for the most part, so this might not be great advice. > print(xyplot(MeanScore ~ PointsInTime, d2, groups = cat, type = 'o', > xlab = "Points in Time", ylab = "Mean Score", aspect = 0.7, > auto.key = list(points = TRUE, lines = TRU

Re: [R] iid.test package/ncdf package

2007-12-12 Thread Moshe Olshansky
What do you mean by IID tests? You certainly can create sequences of iid variables/vectors in R (see ?rnorn, ?runif, ?mvrnorm from package MASS, etc.). --- Shubha Vishwanath Karanth <[EMAIL PROTECTED]> wrote: > Hi R, > > > > I want to conduct iid tests. So, I went to download > 'iid.test' pa

Re: [R] xYplot problem

2007-12-12 Thread Deepayan Sarkar
On 12/12/07, Erin Berryman <[EMAIL PROTECTED]> wrote: > > On Dec 12, 2007, at 1:37 PM, Deepayan Sarkar wrote: > > > On 12/12/07, Erin Berryman <[EMAIL PROTECTED]> wrote: > >> Dear R community, > >> > >> Since upgrading to R v.2.6.1 and re-installing package Hmisc (binary > >> for Mac OS X v.3.4-3),

Re: [R] problem applying a conditional formula to each element of a matrix

2007-12-12 Thread jim holtman
I think you want to use 'ifelse': > Cov.f <- function(h, sigmasq, phi) { + ifelse(h <= phi, sigmasq * (1 - ( 1.5 * (h/phi) - 0.5 * (h/phi)^3)), 0) + } > > x.coord <- c(5.7, 6.7, 9.8) > y.coord <- c(42.7, 10.2, 77.4) > coords <- cbind(x.coord, y.coord) > distance.matrix <- as.matrix(dist(coord

Re: [R] combine variables to matrix

2007-12-12 Thread Moshe Olshansky
You can always make a loop (V1 corresponds to column 1, etc.) but as.matrix() is simpler, i.e. in your case data.matrix <- as.matrix(data) --- Andre Jung <[EMAIL PROTECTED]> wrote: > I just got stuck with a quite simple question. I've > just read in an > ASCII table from a plain text file with

Re: [R] xYplot problem

2007-12-12 Thread Erin Berryman
On Dec 12, 2007, at 1:37 PM, Deepayan Sarkar wrote: > On 12/12/07, Erin Berryman <[EMAIL PROTECTED]> wrote: >> Dear R community, >> >> Since upgrading to R v.2.6.1 and re-installing package Hmisc (binary >> for Mac OS X v.3.4-3), I have been getting a error when trying to >> make xYplots: >> >>>

Re: [R] problem applying a conditional formula to each element of a matrix

2007-12-12 Thread Domenico Vistocco
The conditional have to be a single element: > ?"if" cond: A length-one logical vector that is not 'NA'. Conditions of length greater than one are accepted with a warning, but only the first element is used. Other types are coerced to logical if possible, ignoring

Re: [R] R and Excel Interface

2007-12-12 Thread Domenico Vistocco
[EMAIL PROTECTED] wrote: > Hello everyone, > > I'll to request some input on what is available for use as an R/Excel > interface; any help will be appreciated. > > Tony. > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing

Re: [R] R and Excel Interface

2007-12-12 Thread Bert Gunter
RSiteSearch("RExcel") Please do at least start by using already available R information resources. Bert Gunter Genentech Nonclinical Statistics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, December 12, 2007 1:12 P

[R] problem applying a conditional formula to each element of a matrix

2007-12-12 Thread Dale Steele
I'm applying a function (Cov.f) defined below to each element of a distance matrix. When I run the code below, I get a warning message (below) and elements of returned matrix [2,3] and [3,2] are not zero as I would expect. Clearly, there is an error... What am I doing wrong? Thanks. --Dale Warni

[R] 64-bit package compilation problems on powerpc

2007-12-12 Thread Mark W Kimpel
I have been working with my sysAdmin to get R-devel up and running with 64-bit compilation on our PowerPC cluster. We've got the base install to compile with the following flags: LDFLAGS=-m64 FFLAGS="-m64 -mpowerpc64" FCFLAGS="-m64 -mpowerpc64" CFLAGS="-m64 -mpowerpc64" ../configure --prefix='

[R] Defining the "random" term in function "negbin" of AOD package

2007-12-12 Thread Caroline Paulsen
I have tried glm.nb in the MASS package, but many models (I have 250 models with different combinations of predictors for fish counts data) either fail to converge or even diverge. I'm attempting to use the negbin function in the AOD package, but am unsure what to use for the "random" term, whi

[R] R and Excel Interface

2007-12-12 Thread Antonio_Paredes
Hello everyone, I'll to request some input on what is available for use as an R/Excel interface; any help will be appreciated. Tony. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listin

Re: [R] two-way categorical anova post-hoc data extraction

2007-12-12 Thread hadley wickham
> Hi list, > > I have a question regarding post-hoc extraction of data from a two-way > categorical anova. > > I have a categorical anova of this form: > > width ~ steepness + patchiness (4 steepness levels, 4 patchiness levels) > > This simple setup answers if for the widths I collected across di

Re: [R] difficulties getting coef() to work in some lmer() calls

2007-12-12 Thread Douglas Bates
On Dec 3, 2007 1:45 PM, David Park <[EMAIL PROTECTED]> wrote: > I'm working with Andrew Gelman on a book project and we're having some > difficulties getting coef() to work in some lmer() calls. > > Some versions of the model work and some do not. For example, this works > (in that we can run the

Re: [R] [OT] vernacular names for circular diagrams

2007-12-12 Thread Sandrine-et-Francois
Salut Jean, I guess here in Alsace, in between France, Germany and Switzerland, we would call it a Flamenküche diagram ;-))) Best regards, François - Original Message - From: "R Heberto Ghezzo, Dr" <[EMAIL PROTECTED]> To: "Peter Dalgaard" <[EMAIL PROTECTED]>; "Jean lobry" <[EMAIL PROT

[R] two-way categorical anova post-hoc data extraction

2007-12-12 Thread Hufkens Koen
Hi list, I have a question regarding post-hoc extraction of data from a two-way categorical anova. I have a categorical anova of this form: width ~ steepness + patchiness (4 steepness levels, 4 patchiness levels) This simple setup answers if for the widths I collected across different levels

[R] Rgui: workaround for hang from tseries and other packages using Fortran I/O

2007-12-12 Thread Prof Brian Ripley
Several people have reported hanging when using garch() from tseries under Rgui (Windows), as well as from other packages using Fortran I/O. We will have a revised tseries that does not suffer from the problem shortly, but here is a generic workaround: set the environment variable GFORTRAN_STDOU

[R] xYplot problem

2007-12-12 Thread Erin Berryman
Dear R community, Since upgrading to R v.2.6.1 and re-installing package Hmisc (binary for Mac OS X v.3.4-3), I have been getting a error when trying to make xYplots: >plotcv<-c(34.88, 41.51, 45.81, 51.05, 51.66) >plotcv.se<-c(2.406551, 3.071291, 4.331407, 3.213873, 4.838150) >month<-c(6,

Re: [R] Importing Large Dataset into Excel

2007-12-12 Thread Julian Burgos
Hi Wayne, I'm assuming that you file is really a comma-separated file (*.csv) and not an Excel workbook (*.xls) saved with a .csv extension, right? That (in my experience) is a common mistake. You should open your file with a simple text editor (notepad will do if the file is not too large) an

Re: [R] combine variables to matrix

2007-12-12 Thread Julian Burgos
Hi Andre, I don't quite understand what you are trying to do. Why you are using cbind to join columns of a dataset that it is already in table form? It is true that read.table will give you a data.frame instead of a matrix, but if for some reason you need a matrix you can do simply data.matr

Re: [R] [OT] vernacular names for circular diagrams

2007-12-12 Thread R Heberto Ghezzo, Dr
>From Montreal, Some people here call it the 'pizza diagram' ?some not eatable names? salut -Original Message- From: [EMAIL PROTECTED] on behalf of Peter Dalgaard Sent: Wed 12/12/2007 9:33 AM To: Jean lobry Cc: r-help@r-project.org Subject: Re: [R] [OT] vernacular names for circular diag

Re: [R] Reproducibility of experiment

2007-12-12 Thread Marc Schwartz
On Wed, 2007-12-12 at 17:23 +0100, [EMAIL PROTECTED] wrote: > Dear list, > > I have an experiment that I have run 10 times in order to find out its > reproducibility. I wonder if there is any function that I can use for > obtaining a significance value of reproducibility or agreement of > meas

Re: [R] matrix graph

2007-12-12 Thread Julian Burgos
The basic functions you need are image() contour() although I like better the plot.surface() function in the 'fields' package. Julian threshold wrote: > Hi All, simple question: > do you know how to graph the following object/matrix in a 'surface manner': > > [,1] [,2] [,3]

Re: [R] lm/model.matrix confusion (? bug)

2007-12-12 Thread Mark Difford
Hi Gavin, > ... In this instance, you don't want to be working with lm. You can use > lm.fit which returns an object with $coefficients, so I would guess you > need something like this (not tested) ... & more ... That's a great help, many thank's for walking me through it; that's the stuff I ne

Re: [R] eliminating cancel button in winDialogString call

2007-12-12 Thread Prof Brian Ripley
On Wed, 12 Dec 2007, Michelle Bourassa Stahl wrote: > I would like to use the function winDialogString to get input from a user to > a program but would like to eliminate the cancel button option and just have > the OK button appear. The problem is that if a user enters data then > accidently hits

[R] eliminating cancel button in winDialogString call

2007-12-12 Thread Michelle Bourassa Stahl
I would like to use the function winDialogString to get input from a user to a program but would like to eliminate the cancel button option and just have the OK button appear. The problem is that if a user enters data then accidently hits Cancel instead of OK, the program may either run incorrectly

[R] CTRL-C behaviour with RODBC on Solaris2.8

2007-12-12 Thread Murdock, Erin L.
Dear Dr. Sheth, This spring, Dr. Cottler and the EPRG submitted a renewal for the T32 NIMH Training Program in Psychiatric Epidemiology and Biostatistics. We are submitting a letter to Council for the competing continuation for NIMH which better showcases the accomplishments of our past traine

Re: [R] Sys.setlocale() and text()

2007-12-12 Thread Prof Brian Ripley
On Wed, 12 Dec 2007, Ed Merkle wrote: > Thanks very much for the response. I think I left out an important > detail, however. > > I want my lowercase sigma to be displayed in a specific font from the > Rdevga file (my project involves fonts). So far as I know, quote() does > not allow me to sele

Re: [R] S3 and S4 clash

2007-12-12 Thread Spencer Graves
Dear Prof. Ripley: Thanks for your help. I very much appreciate your great generosity in both your substantive contributions to the code and documentation for R and in responding to so many questions, helping to make R what it is today. In the real application that led to the to

Re: [R] OS-dependent behaviour of strucchange?

2007-12-12 Thread Michael Lundholm
Unfortunately I did did provide an accurate link to the files I referred to in my question. The following link works http://people.su.se/~lundh/downloads/y.rda Excuse me /Michael Lundholm -- Docent Michael Lundholm http://www.ne.su.se/~mlu Reclaim Your Inbox! http://www.mozilla.org/products/th

Re: [R] Overlay PDF on histogram

2007-12-12 Thread Gavin Simpson
On Wed, 2007-12-12 at 09:16 -0700, James wrote: > Hi, > > I thought that I had read somewhere that there was a really simple > way to overlay the probability density function of a normal > distribution over a histogram, after the histogram has already been > plotted. Possibly a one word co

Re: [R] Need good Reference Material and Reading about Gaussian Copulas

2007-12-12 Thread Albicelli, Nicholas (Exchange)
www.defaultrisk.com has good resources (albeit as applied to structured credit) - do a search on "CDO copula" HTH -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, December 12, 2007 10:

Re: [R] Sys.setlocale() and text()

2007-12-12 Thread Gabor Grothendieck
Try this: plot(1:10) vf <- c("serif", "plain") text(5.5, 5, "\\*s", vfont=vf) ?Hershey On Dec 12, 2007 10:20 AM, Ed Merkle <[EMAIL PROTECTED]> wrote: > Thanks very much for the response. I think I left out an important > detail, however. > > I want my lowercase sigma to be displayed in a specifi

[R] Reproducibility of experiment

2007-12-12 Thread darteta001
Dear list, I have an experiment that I have run 10 times in order to find out its reproducibility. I wonder if there is any function that I can use for obtaining a significance value of reproducibility or agreement of measurements. I thought of coefficient of variation but, as far as I know, I

[R] Overlay PDF on histogram

2007-12-12 Thread James
Hi, I thought that I had read somewhere that there was a really simple way to overlay the probability density function of a normal distribution over a histogram, after the histogram has already been plotted. Possibly a one word command. I've found this email from the archives, but I don't

Re: [R] how to shorten elements in a data frame?

2007-12-12 Thread dankelley
In case anyone with a similar need comes across this thread, I am posting below a solution to my problem, in which I construct a new data frame that has the desired dimensions, instead of trying to change the dimensions of the existing data frame. npt <- length(pt) # Step through

[R] Adding data labels to Lattice plots

2007-12-12 Thread chandrasekhar ganduri
Hi, I am new to lattice graphics and have the following question. I have a dataframe d2: cat PointsInTime MeanScore 1 Parent Intake 26.25000 2 Youth Intake 9.75000 3 Worker Intake 20.63636 4 ParentDischarge 24.0 5 YouthDischarge 15.6 6 WorkerDisch

Re: [R] Need good Reference Material and Reading about Gaussian Copulas

2007-12-12 Thread Pfaff, Bernhard Dr.
Hello Neil, you will find decent and well-written papers on: http://www.math.ethz.ch/~embrecht/ http://www.ma.hw.ac.uk/~mcneil/ http://www.math.uni-leipzig.de/~tschmidt/#publications Best, Bernhard ps: Incidentally, the monograph http://press.princeton.edu/titles/8056.html contains nice ill

Re: [R] discrepancy between periodogram implementations ? per and spec.pgram

2007-12-12 Thread Prof Brian Ripley
There are several definitions of a periodgram. Note that > log(2*pi) [1] 1.837877 See the comments in ?spectrum about scalings. I think the comments in ?per incorrectly ignore the scaling issues: per() does not take the base frequency into account and has an extra divisor of 2*pi. E.g. > x

Re: [R] lm/model.matrix confusion (? bug)

2007-12-12 Thread Gavin Simpson
On Wed, 2007-12-12 at 06:46 -0800, Mark Difford wrote: > Hi Gavin, Berwin, > > Thanks for your detailed replies. I'll make a general reply, if you don't > mind. > > To reiterate, my main point is that if model.matrix() can be used in this > way, then lm() shouldn't add an intercept. > > >> ...

Re: [R] combine variables to matrix

2007-12-12 Thread Peter Dalgaard
Andre Jung wrote: > I just got stuck with a quite simple question. I've just read in an > ASCII table from a plain text file with read.table(). It's a 1200x1200 > table. R has assigned variables for each column: V1,V2,V3,V4,... > For small data sets > > data <- read.table("data.txt"); > data.matrix

[R] Need good Reference Material and Reading about Gaussian Copulas

2007-12-12 Thread ngottlieb
Can anyone advise me on some pratical papers or books On Gaussian Copulas? Anything in the genre of Copulas Dummies Would be a help. As simpe, and approachable with minimal pedantic style. Thanks, Neil This information is being sent at t

Re: [R] Sys.setlocale() and text()

2007-12-12 Thread Ed Merkle
Thanks very much for the response. I think I left out an important detail, however. I want my lowercase sigma to be displayed in a specific font from the Rdevga file (my project involves fonts). So far as I know, quote() does not allow me to select a font. Thus, I am specifically interested

Re: [R] book on regular expressions

2007-12-12 Thread ngottlieb
I recommend the following Book on regular expression matching: "Mastering Regular Expressions" by Jeffrey Freidl Publisher: O'Reilly ISBN:0-596-52812-4 Based on the my "blood, sweat and tears" of using regex type patterns which can be very obfuscated, in addition to reading the syntax from the a

[R] discrepancy between periodogram implementations ? per and spec.pgram

2007-12-12 Thread Lieven Desmet
hello, I have been using the per function in package longmemo to obtain a simple raw periodogram. I am considering to switch to the function spec.pgram since I want to be able to do tapering. To compare both I used spec.pgram with the options as suggested in the documentation of per {longmemo}

[R] combine variables to matrix

2007-12-12 Thread Andre Jung
I just got stuck with a quite simple question. I've just read in an ASCII table from a plain text file with read.table(). It's a 1200x1200 table. R has assigned variables for each column: V1,V2,V3,V4,... For small data sets data <- read.table("data.txt"); data.matrix <- cbind(V1,V2,V3); works.

[R] how to shorten elements in a data frame?

2007-12-12 Thread dankelley
I have a data frame ("res$data" in the example below), and I'd like to walk through it, doing an approx() to interpolate each element in turn based on the value of the item named "pressure" that is in the data.frame. I've put some code below. I had hoped that the commented-out "length() <-" line

Re: [R] lm/model.matrix confusion (? bug)

2007-12-12 Thread Mark Difford
Hi Gavin, Berwin, Thanks for your detailed replies. I'll make a general reply, if you don't mind. To reiterate, my main point is that if model.matrix() can be used in this way, then lm() shouldn't add an intercept. >> ... lm(Gas ~ model.matrix(~ Insul/Temp - 1), data = whiteside) And the

Re: [R] [OT] vernacular names for circular diagrams

2007-12-12 Thread Peter Dalgaard
Jean lobry wrote: > Dear useRs, > > by a circular diagram representation I mean what you will get by entering > this at your R promt: > > pie(1:5) > > Nice to have R as a lingua franca :-) > > The folowing quote is from page 360 in this very interesting paper: > > @article{SpenceI2005, > title

[R] iid.test package/ncdf package

2007-12-12 Thread Shubha Vishwanath Karanth
Hi R, I want to conduct iid tests. So, I went to download 'iid.test' package. And the dependent package is 'ncdf', which is not available. So, how do I conduct the IID tests? Can I do these iid tests in Base R? Thanks in advance, Shubha This e-mail may contain confidential and/or privileg

[R] [OT] vernacular names for circular diagrams

2007-12-12 Thread Jean lobry
Dear useRs, by a circular diagram representation I mean what you will get by entering this at your R promt: pie(1:5) Nice to have R as a lingua franca :-) The folowing quote is from page 360 in this very interesting paper: @article{SpenceI2005, title = {No Humble Pie: The Origins and Usag

[R] XML R function description

2007-12-12 Thread Teodor Krastev
Hi, I was wondering if there is a standard for R function description in XML (or any plain text) format. Rd files are the closest thing I found, but they do not describe the argument (or return value) types. The purpose would be to write a program to automate the creation of C# wrapper around

[R] OS-dependent behaviour of strucchange?

2007-12-12 Thread Michael Lundholm
Using the following code: library(strucchange) load(file="y.rda") ar1<-formula(y~lag(y,k=-1)) plot(Fstats(ar1)) (where the the data file can be downloaded from www.ne.su.se/~mlu/downloads/y.rda) I have a problem replicating identical plots on different implementations of R for different operating

Re: [R] Importing Large Dataset into Excel

2007-12-12 Thread Corey Sparks
Did you try read.xls() in the xlsReadWrite library, I have had good success with this. Corey Corey S. Sparks, Ph.D. Assistant Professor Department of Demography and Organization Studies University of Texas San Antonio One UTSA Circle San Antonio, TX 78249 email:[EMAIL PROTECTED] [[a

Re: [R] Measure of agreement??

2007-12-12 Thread Domenico Vistocco
There is an agreement plot (and a relative measure) in the vcd package. Maybe it could be useful. domenico Ioannis Dimakos wrote: > Patrik, > > >> help.search("kappa") >> > > is a good place to start. Alternatively, > > >> RSiteSearch("measure of agreement") >> > > provides helpf

Re: [R] Getting error message using R: Please help (it's coursework due in on Friday)

2007-12-12 Thread ethanhaas
Although I was wrong on what I was trying to decompose that didn't work either however after a conversation with the lecturer the problem has been found and solved. Gavin Simpson wrote: > > > On Wed, 2007-12-12 at 05:03 -0800, ethanhaas wrote: >> I was, and the answer is yes, but I figured the

Re: [R] tm package - how to transform a TermDocMatrix to a data.frame

2007-12-12 Thread Uwe Ligges
Filipe Almeida wrote: > Hi to all, > > I'm using the tm package in a Windows machine. > > This is my sample: >> tts1 <- TermDocMatrix(tts, weighting="tf-idf") >> typeof(tts1) > [1] "S4" > > How can i transform or put the tts1 TermDocMatrix in a simple data.frame or > simple matrix. I need to c

Re: [R] book on regular expressions

2007-12-12 Thread hadley wickham
> I don't think anyone has mentioned the references given on the help page > ?regexp: they are a great deal more reliable than some of the third-party > write-ups that have been mentioned. They are good technical references, but I don't think they're very helpful for someone trying to learn regula

[R] IRT Likelihood problem

2007-12-12 Thread Doran, Harold
I have the following item response theory (IRT) likelihood that I want to maximize w.r.t. to theta (student ability). L(\theta) = \prod(p(x)) Where p(x) is the 3-parameter logistic model when items are scored dichotomously (x_{ij} = 0 or 1) and p(x) is Muraki's generalized partial credit model wh

Re: [R] Getting error message using R: Please help (it's coursework due in on Friday)

2007-12-12 Thread Gavin Simpson
On Wed, 2007-12-12 at 05:03 -0800, ethanhaas wrote: > I was, and the answer is yes, but I figured the easiest way for you to > understand is for me to say exactly what I am trying to do. Perhaps I don't > even need to decompose (although I think I do). If I can get past this > problem it would mak

Re: [R] Using predict()?

2007-12-12 Thread Uwe Ligges
Zembower, Kevin wrote: > I'm trying to solve a homework problem using R. The problem gives a list > of cricket chirps per second and corresponding temperature, and asks to > give the equation for the linear model and then predict the temperature > to produce 18 chirps per second. So far, I have:

Re: [R] editor under MAC system

2007-12-12 Thread Armin Goralczyk
On Dec 11, 2007 3:03 PM, Vincent Goulet <[EMAIL PROTECTED]> wrote: > Le mar. 11 déc. à 07:03, Neil Shephard a écrit : > > > YIHSU CHEN-3 wrote: > >> > >> Dear R-user; > >> I recently switched from PC to MAC. Is there a compatible editor as > >> Win-editor with package RWinEdit for MAC? > >> > >> >

Re: [R] Measure of agreement??

2007-12-12 Thread Ioannis Dimakos
Patrik, > help.search("kappa") is a good place to start. Alternatively, > RSiteSearch("measure of agreement") provides helpful tips. HTH, I. = On Τετ, Δεκέμβριος 12, 2007 14:19, Φhagen Patrik wrote: > > > Dear List, > > Please put me on the right track. I hav

Re: [R] book on regular expressions

2007-12-12 Thread Prof Brian Ripley
On Wed, 12 Dec 2007, S Ellison wrote: > > "hadley wickham" <[EMAIL PROTECTED]> 11/12/2007 17:02 >>> >> Could someone recommend a good book on regular expressions with focus > on >> applications/use as it might relate to R. I remember there was a > mention of >> such a reference book recently

Re: [R] Getting error message using R: Please help (it's coursework due in on Friday)

2007-12-12 Thread ethanhaas
I was, and the answer is yes, but I figured the easiest way for you to understand is for me to say exactly what I am trying to do. Perhaps I don't even need to decompose (although I think I do). If I can get past this problem it would make everything else so much easier. P.Dalgaard wrote: > >

Re: [R] Getting error message using R: Please help (it's coursework due in on Friday)

2007-12-12 Thread Peter Dalgaard
ethanhaas wrote: > What I'm trying to do is have plots and summary statistics of x > (autocorrelations for example) where x refers to the data in using, and I > thought decomposing would be the way to go about it. > > > You are not listening. I give up. > P.Dalgaard wrote: > >> ethanhaas wro

Re: [R] Getting error message using R: Please help (it's coursework due in on Friday)

2007-12-12 Thread ethanhaas
What I'm trying to do is have plots and summary statistics of x (autocorrelations for example) where x refers to the data in using, and I thought decomposing would be the way to go about it. P.Dalgaard wrote: > > ethanhaas wrote: >> I simply called it information but I can also call it data if

Re: [R] book on regular expressions

2007-12-12 Thread S Ellison
>>> "hadley wickham" <[EMAIL PROTECTED]> 11/12/2007 17:02 >>> > Could someone recommend a good book on regular expressions with focus on > applications/use as it might relate to R. I remember there was a mention of > such a reference book recently, but I could not locate that message on the > ar

[R] Hep on using GAM() in R

2007-12-12 Thread zhijie zhang
Dear friends, I met some problem on using GAM() function in R. Any help or suggestions are greatly appreciated. # My programs and problems are list below# library(splines) library(gam) point<-read.csv("d:/gam.csv",sep=",",header=TRUE) #read the data gam.opt<-gam(mark~lo(x,y,span=0.2)+lo(lst

Re: [R] Package compilation

2007-12-12 Thread Prof Brian Ripley
The easiest way is to read (in the manual) If you have only a source package that is known to work with current R and just want a binary Windows build of it, you could make use of the building service offered at win-builder.r-project.org. Is that what was too hard for you? If so, you ar

Re: [R] Importing Large Dataset into Excel

2007-12-12 Thread Domenico Vistocco
If you are using a windows system you could take a look at the xlsReadWrite packages (there are functions for reading xls files). domenico jim holtman wrote: > ?count.fields > > count.fields will tell you how many items are in each line. As you > said, they should all be the same, but this will

[R] Measure of agreement??

2007-12-12 Thread Öhagen Patrik
Dear List, Please put me on the right track. I have been searching for the R functions for measures of agreement. Where should I look? Patrik Öhagen Läkemedelsverket Box 26 751 03 Uppsala Tel. +46(0)18-174924 [EMAIL PROTECTED] [[alternative HTML version deleted]] __

Re: [R] how to obtain the CPU time of my program

2007-12-12 Thread Christian Kohler
Hi, first of all 'sorry' for my rather late post on this topic... Did you already came across the R command 'Rprof' ? This might help you to find answers to your problem in terms of CPU time/command. I use 'Rprof' like this: >Rprof() >source("yourCode.R") >Rprof(NULL) This produces a file calle

Re: [R] Getting error message using R: Please help (it's coursework due in on Friday)

2007-12-12 Thread Peter Dalgaard
ethanhaas wrote: > I simply called it information but I can also call it data if you wish, it > doesn't make a difference. > The timeseries is simply the time series of this data between the two dates > and using is the data up to 1990 as opposed to 1994. > > And isn't it one of the latter two y

Re: [R] Matrix Inversion

2007-12-12 Thread Peter Dalgaard
Wang Chengbin wrote: > I got the following error: > > a = read.csv("mat.csv") > b = as.matrix(a) > tb = t(b) > bb = tb %*% b > dim(bb) > ibb = solve(bb) > bb %*% ibb > > >> ibb = solve(bb) >> > Error in solve.default(bb) : > system is computationally singular: reciprocal condition number

[R] Package compilation

2007-12-12 Thread Dani Valverde
Hello, Is there an easy way to compile a package so that it can be installed as a binary file under Windows? Now I have the source code. I am not used in compiling, and the documentation seems too hard for me, so an easy way would be great. Best regards, Dani -- Daniel Valverde Saubí Grup de

Re: [R] Getting error message using R: Please help (it's coursework due in on Friday)

2007-12-12 Thread ethanhaas
I simply called it information but I can also call it data if you wish, it doesn't make a difference. The timeseries is simply the time series of this data between the two dates and using is the data up to 1990 as opposed to 1994. P.Dalgaard wrote: > > ethanhaas wrote: >> I've been trying for t

Re: [R] Matrix Inversion

2007-12-12 Thread Robin Hankin
Hello Wang matrix bb is symmetric positive semidefinite, so algebraically the eigenvalues are nonnegative. I would use bb <- crossprod(b) to calculate bb (faster and possibly more accurate) Look at eigen(bb,TRUE,TRUE)$values (see ?eigen for the meaning of the arguments) to see how many very s

Re: [R] Importing Large Dataset into Excel

2007-12-12 Thread David Scott
On Wed, 12 Dec 2007, Peter Dalgaard wrote: > Philippe Grosjean wrote: > The problem is often a misspecification of the comment.char argument. > For read.table(), it defaults to '#'. This means that everywhere you > have a '#' char in your Excel sheet, the rest of the line is ignored. > This res

[R] Matrix Inversion

2007-12-12 Thread Wang Chengbin
I got the following error: a = read.csv("mat.csv") b = as.matrix(a) tb = t(b) bb = tb %*% b dim(bb) ibb = solve(bb) bb %*% ibb > ibb = solve(bb) Error in solve.default(bb) : system is computationally singular: reciprocal condition number = 1.77573e-19 > Are there any ways to find more informati

Re: [R] lm/model.matrix confusion (? bug)

2007-12-12 Thread Gavin Simpson
On Wed, 2007-12-12 at 02:05 -0800, Mark Difford wrote: > Dear List-members, > > Hopefully someone will help through my confusion: > > In order to get the same coefficients as we get from the following > > ## > require (MASS) > summary ( lm(Gas ~ Insul/Temp - 1, data = whiteside) ) > >

Re: [R] lm/model.matrix confusion (? bug)

2007-12-12 Thread Berwin A Turlach
G'day Mark, On Wed, 12 Dec 2007 02:05:54 -0800 (PST) Mark Difford <[EMAIL PROTECTED]> wrote: > In order to get the same coefficients as we get from the following [...] > we need to do the following (if we use model.matrix to specify the > model) By why would you want to do this? > ## > summary

  1   2   >