Re: [R] Matrix operations please help

2005-10-30 Thread Uwe Ligges
See ?reshape Uwe Ligges Srinivas Iyyer wrote: > Dear Group, > > I have a matrix (157 X 157 ) with correlation values. > I want to convert the unique elements into a long list > so that I can add an extra variable and plot them. > > Example: > > A B C D > > alfa 1 0.3 0.8

[R] Matrix operations please help

2005-10-30 Thread Srinivas Iyyer
Dear Group, I have a matrix (157 X 157 ) with correlation values. I want to convert the unique elements into a long list so that I can add an extra variable and plot them. Example: A B C D alfa 1 0.3 0.8 -0.3 beta 0.2 1 -0.3 0.4 echo 0.9 -0.3 1 0.5 tang -0.5 0.5 0.

Re: [R] lmer / variance-covariance matrix random effects

2005-10-30 Thread Spencer Graves
Have you received a reply to this post? I haven't seen one. I agree that VarCorr(lmer(...)) is "unhandy" if I want to do further computations with those numbers, which I often do. The following solves that problem, at least for the example in the lmer VarCorr documentation: fm2 <-

[R] watershed transform

2005-10-30 Thread Marc Kirchner
Omniscient r-help-subscriptors, after consulting google quite extensively, this is my last resort: I am in need of a watershed transform on large (sparse) 2D matrices and wonder if someone out there has a readily implemented R version I could use - there just is no point in reimplementing the whee

Re: [R] Downloading zip files

2005-10-30 Thread Duncan Murdoch
Murray Jorgensen wrote: > I have not had a great amount of success installing/updating packages > from the "Packages" menu of Rgui under Windows XL. (Except for > installing from loacal zip files.) > > But I am not asking for help in using these facilities because I prefer > to keep a folder of

Re: [R] Downloading zip files

2005-10-30 Thread ecatchpole
Well, there's downTHEMall, a Mozilla Firefox extension (https://addons.mozilla.org/extensions/). Ted. On 31/10/05 11:38, Murray Jorgensen wrote,: > I have not had a great amount of success installing/updating packages > from the "Packages" menu of Rgui under Windows XL. (Except for > installin

Re: [R] Downloading zip files

2005-10-30 Thread Marc Schwartz
On Mon, 2005-10-31 at 13:38 +1300, Murray Jorgensen wrote: > I have not had a great amount of success installing/updating packages > from the "Packages" menu of Rgui under Windows XL. (Except for > installing from loacal zip files.) > > But I am not asking for help in using these facilities beca

Re: [R] Hilfeanfrage

2005-10-30 Thread Dirk Eddelbuettel
On 30 October 2005 at 21:36, Uwe Ligges wrote: | Dirk Eddelbuettel wrote: | > > skewness(worldindex05r[,c(V2,V3)]) | | Dirk, you forgot some quotes: | | skewness(worldindex05r[,c("V2","V3")]) Quite right. Thanks for catching that. Recurrent trouble with non-reproducible examples... La

[R] Downloading zip files

2005-10-30 Thread Murray Jorgensen
I have not had a great amount of success installing/updating packages from the "Packages" menu of Rgui under Windows XL. (Except for installing from loacal zip files.) But I am not asking for help in using these facilities because I prefer to keep a folder of package zip files. On the other han

Re: [R] identity matrix

2005-10-30 Thread David Scott
On Sun, 30 Oct 2005, Robert wrote: > I found a very odd thing. > A matrix multiplied by its inverse matrix should be an > identity matrix. > But why the following thing happens? > >> x%*%t(x) > [,1] [,2] [,3] [,4] [,5] > [1,] 108.16 58.24 32.24 66.56 225.68 > [2,] 58.24 31.36 17.

Re: [R] identity matrix

2005-10-30 Thread Thomas Lumley
On Sun, 30 Oct 2005, Robert wrote: > I found a very odd thing. > A matrix multiplied by its inverse matrix should be an > identity matrix. Well, an invertible matrix multiplied by its inverse... The matrix that you give (to two decimal places) is singular > solve(a) Error in solve.default(a) : s

[R] identity matrix

2005-10-30 Thread Robert
I found a very odd thing. A matrix multiplied by its inverse matrix should be an identity matrix. But why the following thing happens? > x%*%t(x) [,1] [,2] [,3] [,4] [,5] [1,] 108.16 58.24 32.24 66.56 225.68 [2,] 58.24 31.36 17.36 35.84 121.52 [3,] 32.24 17.36 9.61 19.84 67

[R] Permutational ks p-value for paired data

2005-10-30 Thread Chen, John W.,M.D.
Dear List, I am new to R. I would like to compute the permutational exact p-value for the Kolmogorov-Smirnov test for paired data. Is there a routine that is available to do this? Thanks. John -- __ R-help@stat.math.ethz.ch mailing list https://stat.e

Re: [R] Hilfeanfrage

2005-10-30 Thread Uwe Ligges
Dirk Eddelbuettel wrote: > Thomas, > > On 30 October 2005 at 17:05, Thomas Herbst wrote: > | Sehr geehrtes R-TEAM! > > The list operates in English as a casual look at the archives would have told > you. > > | Wie Sie sehen, besteht die Variable "worldindex05r" aus 3 Spalten "V1, V2, > | V3". Re

Re: [R] How to print output during for loops?

2005-10-30 Thread Rau, Roland
Hi, > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Martin Lam > > I was wondering, if it is possible to print out the > values of variables while you are in a for/while loop? > Like this for example: > > for (i in 1:5) { > i > } > yes, sho

Re: [R] Hilfeanfrage

2005-10-30 Thread Dirk Eddelbuettel
Thomas, On 30 October 2005 at 17:05, Thomas Herbst wrote: | Sehr geehrtes R-TEAM! The list operates in English as a casual look at the archives would have told you. | Wie Sie sehen, besteht die Variable "worldindex05r" aus 3 Spalten "V1, V2, | V3". Rechnen kann R aber nur mit den numerischen We

Re: [R] RODBC Error

2005-10-30 Thread Michael Greene
Is there a specific issue with connections using the RODBC package? I am able to use the same DSN/ODBC configuration to connect to the database using Microsoft Excel's MS Query tool, and using other drivers from other OSes (Windows). Do I have to reference the driver directly in the odbcDri

[R] Hilfeanfrage

2005-10-30 Thread Thomas Herbst
Sehr geehrtes R-TEAM! Ich habe drei Probleme, die aus Ihrer Sicht wahrscheinlich nur "banaler" Art sind: > skewness(worldindex05r) V1 V2 V3 NA 0.08269108 -0.55517232 Warning message: argument is not numeric or logical: returning NA in: skewness.default(X[[1

[R] Problems with BIC (Bayesian Information Criterion)

2005-10-30 Thread Christian Jones
Hi, I would like to compare several Generalized Linear Models on the basis of BIC. My models have a binary response variable and are fitted with the glm function. AIC works well, not so BIC I tried: testBIC<-glm(y~x1+x2+x3,binomial) > BIC(testBIC) Error in log(x) : Non-numeric argument to math

[R] Help with Subtracting an effect from a Mixed Model

2005-10-30 Thread Matthew Forister
Hi Everyone, I posted a similar question about a week ago, but haven't gotten any replies -- I'm afraid that's because my previous question was too vague. Let me try again with a more specific question, and I hope someone can help. NOTE, I know I should be using the newer lme4 package, I ju

Re: [R] dyn.load() error: bad external relocation length

2005-10-30 Thread Prof Brian Ripley
Try `Writing R Extensions' (as referred to on the help page for SHLIB ...). On Sun, 30 Oct 2005, Walton A. Green wrote: > > Duncan, > > Many thanks: R CMD SHLIB is proably what I was looking fordo you know > where the most extensive documentation for that is located? I looked at > the man pa

Re: [R] dyn.load() error: bad external relocation length

2005-10-30 Thread Walton A. Green
Duncan, Many thanks: R CMD SHLIB is proably what I was looking fordo you know where the most extensive documentation for that is located? I looked at the man page for R and R CMD SHLIP --help, but there wasn't much detail on how it works. Does it (or can it be configured to) run a makefile

Re: [R] Problem with llines in lattice

2005-10-30 Thread John Fox
Dear Deepayan, The application in which I encountered the problem is much more complicated, so I'm not sure whether using groups will work there, but I'll give it a try. Thanks for this, John > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Deepa

[R] R moodle module

2005-10-30 Thread Manuel Castejón Limas
Hello, I have recently started to use moodle (a course management system) for my classes. It has turn out to be a very interesting tool. I woke up this morning wondering about the possibility of adding a module so that the students could use R without needing to install it, just using a server

[R] HOW TO WRITE A DOUBLE EXPONENTIAL FUNCTION

2005-10-30 Thread Yu-Lin
hello i am a new user of R I wonna run a double exponential function with nonlinear quantile regresion model the double exponential function is Y=( ab1978*ab1979*ab1980*ab1981*ab1982*ab1983*ab1984*ab1985*ab1986*ab1987*ab1988*ab1989* ab1990* ab1991*ab1992*ab1993*ab1994* 6670*ab7175*ab7680*ab

Re: [R] How to print output during for loops?

2005-10-30 Thread IAIN GALLAGHER
for (i in 1:5) {print(i)} Cheers Iain --- Martin Lam <[EMAIL PROTECTED]> wrote: > Hi, > > I was wondering, if it is possible to print out the > values of variables while you are in a for/while > loop? > Like this for example: > > for (i in 1:5) { > i > } > > So what I want is this as ou

Re: [R] RODBC Error

2005-10-30 Thread Prof Brian Ripley
On Sat, 29 Oct 2005, Michael Greene wrote: > > Hello, > > I'm using R 2.2.0 on a Mac and attempting to use the RODBC package to > connect to a PostgreSQL server on the local network. I can't tell > whether my problem is in R, or in ODBC setup. These are ODBC error reports, so the problem is in O