Re: [R] Tobit Regression (residual Assumption)

2006-02-13 Thread bambang pramono
For the home page, click on Search, then Searchable mail archives, and look for tobit There's LOTS of stuff. I can't found what you said. Is it assumption like OLS ? : 1. Normal 2. No autocorrelation 3. Homogeneity of variance 4. No Multicolinearity please make sure me ! I need answer

[R] R-help, specifying the places to decimal

2006-02-13 Thread Subhabrata
Hello - R-experts, Is there any way with which we can specify the number after decimal point to take. Like I have a situation where the values are comming 0.160325923 but I only want 4 place to decimal say 0.1603. Is there any way for that. I am no expert in R- and this may sound simple to

Re: [R] R-help, specifying the places to decimal

2006-02-13 Thread Dimitris Rizopoulos
have a look at ?round() Best, Dimitris Dimitris Rizopoulos Ph.D. Student Biostatistical Centre School of Public Health Catholic University of Leuven Address: Kapucijnenvoer 35, Leuven, Belgium Tel: +32/(0)16/336899 Fax: +32/(0)16/337015 Web: http://www.med.kuleuven.be/biostat/

[R] ?bug? strange factors produced by chron

2006-02-13 Thread Petr Pikal
Hallo all Please help me. I am lost and do not know what is the problem. I have a factor called kvartaly. attributes(kvartaly) $levels [1] 1Q.04 2Q.04 3Q.04 4Q.04 1Q.05 2Q.05 3Q.05 4Q.05 $class [1] factor mode(kvartaly) [1] numeric str(kvartaly) Factor w/ 8 levels 1Q.04,2Q.04,..: 1 1 1 1 1

[R] Sweave, mle and curve

2006-02-13 Thread Göran Broström
I am trying to write a lesson on maximum likelihood with Sweave. I get a surprising result with the following code, lec4.Snw: \documentclass[a4paper,12pt]{article} \usepackage[latin1]{inputenc} \title{Maximum likelihood} \author{Göran Broström} \begin{document} \maketitle fig=TRUE= ##

Re: [R] ?bug? strange factors produced by chron

2006-02-13 Thread Prof Brian Ripley
1) The obvious test is via is.factor(), and you have not used that. 2) Your example works for me, so what versions of R and chron is this? 3) Here's my guess. split is using the C-level test isFactor. That tests that the factor is of type integer, so please try typeof(kvartaly) I suspect

[R] Adding dimnames to image()

2006-02-13 Thread Markus Preisetanz
Dear Colleagues, does anybody know how to add dimnames to an image. Right now I'm using image(as.matrix(df3), col=brewer.pal(9,Blues)) where df3 is a data.frame. dimnames(as.matrix(df3)) delivers [[1]] [1] RFM_A1 RFM_A2 RFM_A4 RFM_A5 RFM_A7 RFM_B3 RFM_B6 RFM_B7 RFM_B8 RFM_B9

Re: [R] ?bug? strange factors produced by chron

2006-02-13 Thread Petr Pikal
Thank you very much. On 13 Feb 2006 at 10:54, Prof Brian Ripley wrote: Date sent: Mon, 13 Feb 2006 10:54:21 + (GMT) From: Prof Brian Ripley [EMAIL PROTECTED] To: Petr Pikal [EMAIL PROTECTED] Copies to: r-help@stat.math.ethz.ch

Re: [R] Sweave, mle and curve

2006-02-13 Thread Friedrich . Leisch
On Mon, 13 Feb 2006 11:16:14 +0100, Göran Broström (GB) wrote: I am trying to write a lesson on maximum likelihood with Sweave. I get a surprising result with the following code, lec4.Snw: \documentclass[a4paper,12pt]{article} \usepackage[latin1]{inputenc} \title{Maximum

Re: [R] Adding dimnames to image()

2006-02-13 Thread Roger Bivand
On Mon, 13 Feb 2006, Markus Preisetanz wrote: Dear Colleagues, does anybody know how to add dimnames to an image. Right now I'm using I think you are looking for axis labels - they are taken by default from your missing x and y arguments. Try something like:

[R] Saving surface3d Output

2006-02-13 Thread Laura Quinn
Hello, Please could someone advise if it's possible to save the graphical output from the surface3d() function? I have tried the dev.copy() function to save as a pdf but an error message says I cannot copy from the null device. Laura Quinn Institute of Atmospheric Science School of Earth and

Re: [R] ?bug? strange factors produced by chron

2006-02-13 Thread Prof Brian Ripley
On Mon, 13 Feb 2006, Petr Pikal wrote: Thank you very much. On 13 Feb 2006 at 10:54, Prof Brian Ripley wrote: Date sent:Mon, 13 Feb 2006 10:54:21 + (GMT) From: Prof Brian Ripley [EMAIL PROTECTED] To: Petr Pikal [EMAIL PROTECTED] Copies to:

Re: [R] Sweave, mle and curve

2006-02-13 Thread Jean-Christophe BOUETTE
From: Göran Broström [EMAIL PROTECTED] To: r-help@stat.math.ethz.ch Date: Mon, 13 Feb 2006 11:16:14 +0100 Subject: [R] Sweave, mle and curve I am trying to write a lesson on maximum likelihood with Sweave. I get a surprising result with the following code, lec4.Snw:

Re: [R] Saving surface3d Output

2006-02-13 Thread Duncan Murdoch
On 2/13/2006 6:56 AM, Laura Quinn wrote: Hello, Please could someone advise if it's possible to save the graphical output from the surface3d() function? I have tried the dev.copy() function to save as a pdf but an error message says I cannot copy from the null device. Are you talking about

[R] search algorithm

2006-02-13 Thread Ita . Cirovic-Donev
Hi! I have a problem of finding a specific value in a column. For example, I have a matrix with say 2 columns X Y 1-2.0341602 9.036689e-05 2-1.4287230 1.807338e-04 3-1.1194402 2.711007e-04 4-1.0327582 3.614676e-04 5-0.8130556

[R] zero extent arrays and apply()

2006-02-13 Thread Robin Hankin
Hi I am having difficulty making apply() work as expected (and desired) with arrays that have zero-extent dimensions. ?apply says If each call to 'FUN' returns a vector of length 'n', then 'apply' returns an array of dimension 'c(n, dim(X)[MARGIN])' if 'n 1'. If 'n' equals

Re: [R] search algorithm

2006-02-13 Thread Dimitris Rizopoulos
maybe something like this could be of help: mat - matrix(rnorm(20), 10, 2) val - -0.6523 ### ind - which.min(abs(mat[, 1] - val)) mat mat[ind, ] Best, Dimitris Dimitris Rizopoulos Ph.D. Student Biostatistical Centre School of Public Health Catholic University of Leuven

Re: [R] Saving surface3d Output

2006-02-13 Thread Barry Rowlingson
Duncan Murdoch wrote: Are you talking about surface3d in the rgl package? It doesn't use the standard R graphics system, so dev.copy() won't help. You need rgl.snapshot, which can create png files. You'll need some other utility to convert those to pdf. Or screen-grab them somehow.

Re: [R] search algorithm

2006-02-13 Thread James Muller
Hi, I'm not sure how much weight you're putting on efficiency for your algorithm, but that sounds unnecessarily complicated. If your matrices are not too big then maybe something like this would work. Let your matrix be M and your value be a, then yoursearch - function(M, a) { #

Re: [R] R-help, specifying the places to decimal

2006-02-13 Thread Vivek Satsangi
In addition to round() mentioned earlier, if you are merely looking to *display* your results differently, you may want to check out the digits option, e.g. in summary(): (This is the method signature for data.frame 's): summary(object, maxsum = 7, digits = max(3,

[R] export files - write.table

2006-02-13 Thread Ana Quitério
Hi user I have a question about export files. I run my program for different countries and different years. For export files I do this in SAS: (1) Path to data files %let teste=C:\Documents and Settings\MEALQ\My Documents; (2) Country code; %let cc=pt; (3) Survey year; %let

Re: [R] ?bug? strange factors produced by chron

2006-02-13 Thread Petr Pikal
Hi On 13 Feb 2006 at 12:04, Prof Brian Ripley wrote: Date sent: Mon, 13 Feb 2006 12:04:49 + (GMT) From: Prof Brian Ripley [EMAIL PROTECTED] To: Petr Pikal [EMAIL PROTECTED] Copies to: r-help@stat.math.ethz.ch Subject:

[R] export files - write.table

2006-02-13 Thread Ita . Cirovic-Donev
for write.table in R I use the following: # table to be stored in excel for example sum.stat - data.frame(sum.stat)# data to be stored write.table(sum.stat, file=D://my_table.xls, sep=\t, dec=,, row.names=TRUE, col.names=TRUE, qmethod=double)

Re: [R] search algorithm

2006-02-13 Thread Don MacQueen
There is a function in the Hmisc package that will help. Example: require(Hmisc) x - sort(runif(10)) x [1] 0.1225542 0.1620869 0.2197772 0.3187375 0.5498879 0.565 0.5812717 0.7380532 0.8187384 0.9063713 whichClosest(x,.41) [1] 4 x[4] [1] 0.3187375 Or for your matrix (yourmat),

Re: [R] search algorithm

2006-02-13 Thread Ita . Cirovic-Donev
thanks a lot for the help. I tried some stuff and now it works. Ita Cirovic-Donev Risk Controlling HYPO ALPE-ADRIA-BANK D.D. Amruseva 6, HR-1 Zagreb Phone: +385 1 4899 269 Fax: +385 1 6063 344 E-Mail: [EMAIL PROTECTED] Web: www.hypo-alpe-adria.hr

[R] NA values in principal components

2006-02-13 Thread Krish Krishnan
I have a large dataset that I am reading into R using read.table. The first row contains the column names, and missing observations have the standard NA value. When I try to run principal components with the default treatment of NA values (which is na.omit) I get the error message Error in

Re: [R] appeal --- add sd to summary for univariates

2006-02-13 Thread Patricia J. Hawkins
iw == ivo welch [EMAIL PROTECTED] writes: iw just a short beg for the next R 2.3 version: iw I know it is easy to add the sd into summary() in the source bowels of iw R---but everytime R is updated, my change disappears. :-(. I do not iw believe that R has an easy extension mechanism for

[R] Turning on helpful errors in interpreter? was Re: problem with simple if() statement

2006-02-13 Thread Patricia J. Hawkins
Evidently, my R has some feature of error messages disabled. NG == Norman Goodacre [EMAIL PROTECTED] writes: NG the following code apprantely, for some grand old reason, induces a syntax error: NG if (seq[i] = A) m - trans[1,] NG Error: syntax error in if (seq[i] = Where Norman gets this

[R] Package compiling problem in Linux

2006-02-13 Thread Waichler, Scott R
Hi, I am trying to install packages in R-2.2.1 on a Redhat WS4 system. I get the following error messages trying to install, for example, the akima package: R.version.string [1] R version 2.2.1, 2005-12-20 install.packages(akima, lib=/usr/lib/R/library, repos = http://cran.fhcrc.org/;) . . .

Re: [R] export files - write.table

2006-02-13 Thread Marcus Leinweber
Ana, the following code may help: teste=P:/test cc=pt yy=03 data=matrix(1:12,3,4) dir=paste(teste,cc,yy,sep=/) # does directory already exist? if not, then create it if (!is.null(try(setwd(dir),silent=TRUE))) {dir.create(dir,recursive=T)} # write data to desired location

Re: [R] effect sizes in lme/ multi-level models

2006-02-13 Thread Spencer Graves
The eta^2 you describe looks something like an R^2 (or maybe a partial R^2), and CohensD looks like a Student's t, at least to me. The problem with generalizing these to multi-level models is deciding which components of variance to include where. If you can answer that, I think

[R] Survreg(), Surv() and interval-censored data

2006-02-13 Thread Stephen Richards
Can survreg() handle interval-censored data like the documentation says? I ask because the command: survreg(Surv(start, stop, event) ~ 1, data = heart) fails with the error message Invalid survival type yet the documentation for Surv() states: Presently, the only methods

Re: [R] Turning on helpful errors in interpreter? was Re: problem with simple if() statement

2006-02-13 Thread Uwe Ligges
Patricia J. Hawkins wrote: Evidently, my R has some feature of error messages disabled. NG == Norman Goodacre [EMAIL PROTECTED] writes: NG the following code apprantely, for some grand old reason, induces a syntax error: NG if (seq[i] = A) m - trans[1,] NG Error: syntax error

Re: [R] Survreg(), Surv() and interval-censored data

2006-02-13 Thread Charles Annis, P.E.
How have you defined event? library(survival) ?Surv event: The status indicator, normally 0=alive, 1=dead. Other choices are T/F (TRUE = death) or 1/2 (2=death). For interval censored data, the status indicator is 0=right censored, 1= event at 'time', 2=left

Re: [R] Windows GUI package install annoyance

2006-02-13 Thread Uwe Ligges
Berton Gunter wrote: Folks: A minor (R 2.2.0) Windows package install annoyance, but I can't figure out how to fix it. If someone could tell me how or point me to the appropriate docs, I would appreciate it. I set my CRAN mirror in my Rprofile.site file. After startup, I get:

[R] reshaping data

2006-02-13 Thread Roger Mason
Hello, I have data in a frame: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 I would like them arranged in a single column: 1 2 3 4 . . 8 9 . . 16 etc. I believe this should be possible using reshape, but I can't see how to do it. Thanks for sparing time to help a neophyte, Roger Mason

Re: [R] reshaping data

2006-02-13 Thread ¨Tariq Khan
You might just want to try this, it is quite efficient: as.numeric(t(as.matrix(x))) On 2/13/06, Roger Mason [EMAIL PROTECTED] wrote: Hello, I have data in a frame: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 I would like them arranged in a single column: 1 2 3 4 . . 8 9 . . 16

[R] [BioC] ANN: Introductory R and Bioconductor Mini Course , Seattle, April 12-14

2006-02-13 Thread Nianhua Li
[BioC] ANN: Introductory R and Bioconductor Mini Course , Seattle, April 12-14 We will present a short course on using Bioconductor, primarily aimed at analyzing microarray data, over 2 1/2 days in April. The course will be a mix of lectures and practical labs. Instructors: Robert

[R] JRG Console Output

2006-02-13 Thread Bret Collier
All, I had a question about the JGR console and whether or not I can manipulate the location where line wrapping occurs. I have searched 'JGR' in the R listserve archives and attempted to find console manipulation on the JGR website to no avail and could use some direction. TIA, Bret As an

Re: [R] reshaping data

2006-02-13 Thread Roger Mason
Thank you Tariq. That works perfectly. Roger ¨Tariq Khan [EMAIL PROTECTED] writes: You might just want to try this, it is quite efficient: as.numeric(t(as.matrix(x))) __ R-help@stat.math.ethz.ch mailing list

[R] indexing via a character matrix?

2006-02-13 Thread Roger Levy
Hi, Is it possible to index via a character matrix? For example, I would like to do the following: cont.table - table(df1$A,df1$B) # df1 a data frame with factors A and B cont.table[cbind(df2$A,df2$B)] # df2 a smaller data frame with some # pairings of

[R] Help scoring a matrix of item responses

2006-02-13 Thread Rick DeShon
Hi All. I'm new to R and trying to learn the data manipulation routines. At the moment, this is the one that has me stumped. Imagine n test takers provide responses to k multiple choice items. The result is a (n+1) x k matrix of responses where the first row of the matrix is a correct answer

[R] Fwd: Help scoring a matrix of item responses

2006-02-13 Thread Rick DeShon
Hi All. I'm new to R and trying to learn the data manipulation routines. At the moment, this is the one that has me stumped. Imagine n test takers provide responses to k multiple choice items. The result is a (n+1) x k matrix of responses where the first row of the matrix is a correct answer

[R] LCA in e1071

2006-02-13 Thread Lisa Wang
Hello there, In the e1071 package,'lca' function only works for binary data for Latent class analysis. Am I right? I would like to test the agreement amongst 6 raters for nominal data ona scale from 1-4, and conduct a latent class analysis. What package and what function may I use? Thank you

Re: [R] Fwd: Help scoring a matrix of item responses

2006-02-13 Thread Gabor Grothendieck
Assuming this test data: iris2 - round(iris[1:10, 1:4]) Try this: t(t(iris2) == c(iris2[1,])) + 0 On 2/13/06, Rick DeShon [EMAIL PROTECTED] wrote: Hi All. I'm new to R and trying to learn the data manipulation routines. At the moment, this is the one that has me stumped. Imagine n test

[R] Extracting data elements from simpleboot

2006-02-13 Thread Terry W. Schulz
Hello, I am new to R, so forgive my ignorance on what is probably simple. I find package simpleboot quite useful for LOESS bootstrapping and generation of plots. I want to calculate the standard error for x=60 from the 100 grid points and 50 bootstraps. The code below gives the first fitted

Re: [R] Package compiling problem in Linux

2006-02-13 Thread Prof Brian Ripley
On Mon, 13 Feb 2006, Waichler, Scott R wrote: I am trying to install packages in R-2.2.1 on a Redhat WS4 system. I What architecture is this? How did you install R? get the following error messages trying to install, for example, the akima package: R.version.string [1] R version 2.2.1,

Re: [R] indexing via a character matrix?

2006-02-13 Thread Prof Brian Ripley
On Mon, 13 Feb 2006, Roger Levy wrote: Hi, Is it possible to index via a character matrix? For example, I would like to do the following: cont.table - table(df1$A,df1$B) # df1 a data frame with factors A and B cont.table[cbind(df2$A,df2$B)] # df2 a smaller data frame with some

[R] problem with ROracle - Internal heap ERROR 17177

2006-02-13 Thread Marco Kienzle
Dear R-users, here is an error that you might encounter when using ROracle. library(ROracle) Loading required package: DBI con - dbConnect(dbDriver(Oracle), mkienzle/[EMAIL PROTECTED]) dbListTables(con) ** Internal heap ERROR 17177 addr=0x0 *

[R] X,Y,Z, scatter plot

2006-02-13 Thread Blanchard, Seth A.
Hey All, I am trying to create a scatter plot of x,y,z data where the points are color coded by their z value. So far I have: plot(BGx, BGy, pch=22, type=p, col=heat.colors(20)) is this right? Thank you so much for your help! -Seth

Re: [R] LCA in e1071

2006-02-13 Thread Kjetil Brinchmann Halvorsen
Lisa Wang wrote: Hello there, In the e1071 package,'lca' function only works for binary data for Latent class analysis. Am I right? I would like to test the agreement amongst 6 raters for nominal data ona scale from 1-4, and conduct a latent class analysis. What package package irr (on

Re: [R] X,Y,Z, scatter plot

2006-02-13 Thread Duncan Murdoch
On 2/13/2006 2:49 PM, Blanchard, Seth A. wrote: Hey All, I am trying to create a scatter plot of x,y,z data where the points are color coded by their z value. So far I have: plot(BGx, BGy, pch=22, type=p, col=heat.colors(20)) is this right? If the z values go from 1

[R] transforming data frame for use with persp

2006-02-13 Thread Denis Chabot
Hi, This is probably documented, but I cannot find the right words or expression for a search. My attempts failed. I have a data frame of 3 vectors (x, y and z) and would like to transform this so that I could use persp. Presently I have y-level copies of each x level, and a z value for

Re: [R] transforming data frame for use with persp

2006-02-13 Thread roger koenker
a strategy for this that I use is just persp(interp(x,y,z)) where interp is from the Akima package, and x,y,z are all of the same length. url:www.econ.uiuc.edu/~rogerRoger Koenker email[EMAIL PROTECTED]Department of Economics vox: 217-333-4558

Re: [R] contour lines for levelplot

2006-02-13 Thread Deepayan Sarkar
I'm not sure what gave you the idea that there's a limit of 99 contour lines, but no such limit is intended. You need to read the documentation of panel.contourplot and use it in a panel function. Hint: library(lattice) levelplot(volcano, panel = function(..., at, contour = FALSE,

[R] Dictionaries with integer indices

2006-02-13 Thread Ross Boylan
Some past threads have pointed out that lists can be used as dictionaries storing data with an associated key (environments do this too). I have the seemingly simpler case with integer values for the indices--however, the integers are not necessarily contiguous low numbers. My concern is that if

Re: [R] the proper way to use panel functions in lattice package?

2006-02-13 Thread Deepayan Sarkar
On 2/10/06, simon chou [EMAIL PROTECTED] wrote: Hi, I was trying to stack a topographic map readed in from esri shapefile with a contour map and a vector map. However, the plotMap(maptools) and contourplot(lattice) do not seem to work well on top of each other. Here is part of my code.

Re: [R] Discriminant analysis to select best treatment

2006-02-13 Thread Felipe Martínez-Pastor
Hi. I have found stepclass {klaR}, which is similar to what I was looking for. However, I take note of your advice en stepwise variable selection. Greetings. Felipe Alexandre Santos Aguiar wrote: Em Dom 12 Fev 2006 16:10, Felipe Martínez-Pastor escreveu: --apparently-- not variable selection.

Re: [R] JRG Console Output

2006-02-13 Thread Bret Collier
The obvious answer was options(width=). Bret Bret Collier [EMAIL PROTECTED] 2/13/2006 12:24:22 PM All, I had a question about the JGR console and whether or not I can manipulate the location where line wrapping occurs. I have searched 'JGR' in the R listserve archives and attempted to find

[R] bivariate normal distribution

2006-02-13 Thread He, Yulei
Hi, there. Does anyone know the R function for calculating the cdf of bivariate normal distribution function? Thanks. Yulei [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list

[R] Extracting Data form Simpleboot Output

2006-02-13 Thread Terry W. Schulz
Hello, I am new to R, so forgive my ignorance on what is probably simple. I find package simpleboot quite useful for LOESS bootstrapping and generation of plots. I want to calculate the standard error for x=60 of the 100 grid points and 50 bootstraps. The code below gives the first fitted value.

Re: [R] bivariate normal distribution

2006-02-13 Thread apjaworski
Check out the mvtnorm package. Cheers, Andy __ Andy Jaworski 518-1-01 Process Laboratory 3M Corporate Research Laboratory - E-mail: [EMAIL PROTECTED] Tel: (651) 733-6092 Fax: (651) 736-3122

[R] Turning control back over to the terminal

2006-02-13 Thread Ross Boylan
I'm invoking R from withing a shell script like this R --no-save --no-restore --gui=none `hostname` 21 BYE # various commands here BYE I would like to regain control from the invoking terminal at some point. I tried source(stdin()) but got a syntax error, presumably stdin is the little shell

Re: [R] Package compiling problem in Linux

2006-02-13 Thread Waichler, Scott R
The only way I can see this happening is if you installed a ix86 RPM on a x86_86 system. You can do that and R will run, but you will not be able to build packages out of the box. This is exactly what happened. Now I know to use 'uname -a' to check machine architecture first. I was able

Re: [R] indexing via a character matrix?

2006-02-13 Thread Roger Levy
Prof Brian Ripley wrote: On Mon, 13 Feb 2006, Roger Levy wrote: Hi, Is it possible to index via a character matrix? For example, I would like to do the following: cont.table - table(df1$A,df1$B) # df1 a data frame with factors A and B cont.table[cbind(df2$A,df2$B)] # df2 a smaller

Re: [R] latent class modle for rater agreement

2006-02-13 Thread Jack Tanner
Lisa Wang wrote: I would like to test the agreement amongst 6 raters for nominal data on a scale from 1-4, and conduct a latent class analysis in R. How should the data be formatted and what code should I use? This kind of agreement test seems to call for Krippendorf's alpha. See

[R] ANOVA: Help with SSQ decomposition and contrasts

2006-02-13 Thread Jose Claudio Faria
# Dear R list, # # A have a doubt about SSQ decomposition and contrasts with ANOVAs. # So, I would like a tip from more advanced R users. # Below my data, the basic script and my doubts: # Data r = paste('r', gl(3, 8), sep='') e = paste('e', rep(gl(2, 4), 3), sep='') tra = sort(paste('t',

[R] Update problems of Rcmdr?

2006-02-13 Thread Kenneth Cabrera
Hi R users: I got this messages when I try to use the Rcmdr library, after I make an update with update.packages() command. I am using R221 in windows environment. library(Rcmdr) Loading required package: tcltk Loading Tcl/Tk interface ... done Loading required package: car Error in

[R] read.table

2006-02-13 Thread Diethelm Wuertz
I have a file named test.csv with the following 3 lines: %y-%m-%d;VALUE 1999-01-01;100 2000-12-31;999 read.table(test.csv, header = TRUE, sep = ;) delivers: X.y..m..d VALUE 1 1999-01-01 100 2 2000-12-31 999 I would like to see the following ... %y-%m-%d VALUE 1 1999-01-01

Re: [R] read.table

2006-02-13 Thread jim holtman
?read.table The documentation has the parameter 'check.names'. On 2/13/06, Diethelm Wuertz [EMAIL PROTECTED] wrote: I have a file named test.csv with the following 3 lines: %y-%m-%d;VALUE 1999-01-01;100 2000-12-31;999 read.table(test.csv, header = TRUE, sep = ;) delivers:

Re: [R] read.table

2006-02-13 Thread Gabor Grothendieck
You can do it manually by reading in the headers separately: headers - read.table(test, header = FALSE, nrow = 1, sep = ;, as.is = TRUE) read.table(test, header = FALSE, skip = 1, sep = ;, col.names = headers) On 2/13/06, Diethelm Wuertz [EMAIL PROTECTED] wrote: I have a file named test.csv

Re: [R] read.table

2006-02-13 Thread Diethelm Wuertz
Thanks a lot that works fine! Next problem, if I would have my own package, and the file test.csv would be located in the data directory How to use the function data to get data(test) resulting in: test %y-%m-%d VALUE 1 1999-01-01 100 2 2000-12-31 999 Again Thanks in advance

Re: [R] glmmPQL and random effects

2006-02-13 Thread Spencer Graves
With repeated measures, you will want to use the correlation argument in glmmPQL. For help with how to do that, you need to know that glmmPQL calls lme repeatedly. Therefore, if you have any trouble using it, I suggest you consult Pinheiro and Bates (2000) Mixed-Effects Models in S

[R] Trying to save a *.jpg file from a PHP system call

2006-02-13 Thread Court Arning
This is my first time making a request so please feel free to school me on how to improve on how to make an inquiry. I am running R-1.9.1 in UNIX via a PHP script with a system command to generate a *.jpg image from a list created by a perl script. This R script runs fine

[R] nonlinear model: pseudo-design matrix

2006-02-13 Thread Murray Jorgensen
Given a nonlinear model formula and a set of values for all the parameters defining a point in parameter space, is there a neat way to extract the pseudodesign matrix of the model at the point? That is the matrix of partial derivatives of the fitted values w.r.t. the parameters evaluated at the

Re: [R] Update problems of Rcmdr?

2006-02-13 Thread John Fox
Dear Kenneth, After just running update.packages() myself, I can't duplicate this error (using R 2.2.1 under Win XP). Can you provide a little more information? Are any but the standard packages loaded when you issue the library(Rcmdr) command? Have you made any modifications to a startup file,

[R] weird behavior of nsmall in format

2006-02-13 Thread Adrian Dragulescu
From the help page of format, nsmall should control the number of digits. format(0.123456789, nsmall = 10) [1] 0.1234567890 format(0.123456789, nsmall = 1) [1] 0.1234568 format(0.123456789, nsmall = 2) [1] 0.1234568 format(0.123456789, nsmall = 8) [1] 0.12345679 It adds

[R] How to access values returned by R functions (to put into vectors)?

2006-02-13 Thread Quin Wills
The question is general for all functions, but here is a specific example - # For the logistic regression of the following correlated variables: C - c(457, 1371, 4113, 12339, 37017, 111051, 333153, 999459) E - c(0.003858377, 0.014334578, 0.014092836, 0.737950754, 0.996371828,

Re: [R] Lmer with weights

2006-02-13 Thread Spencer Graves
Will your data support using lme in the 'nlme' package? If yes, I suggest you switch. This is consistent with a response given recently by Doug Bates to a crudely related question (http://finzi.psych.upenn.edu/R/Rhelp02a/archive/68340.html). You probably know that lmer

Re: [R] read.table

2006-02-13 Thread David Scott
On Tue, 14 Feb 2006, Diethelm Wuertz wrote: Thanks a lot that works fine! Next problem, if I would have my own package, and the file test.csv would be located in the data directory How to use the function data to get data(test) resulting in: test %y-%m-%d VALUE 1 1999-01-01

Re: [R] How to access values returned by R functions (to put into vectors)?

2006-02-13 Thread Gabor Grothendieck
Try this: coef(A) On 2/13/06, Quin Wills [EMAIL PROTECTED] wrote: The question is general for all functions, but here is a specific example - # For the logistic regression of the following correlated variables: C - c(457, 1371, 4113, 12339, 37017, 111051, 333153, 999459) E -

Re: [R] How to access values returned by R functions (to put into vectors)?

2006-02-13 Thread ronggui
06.02.14whatyouwant-coef(A) 06.02.14whatyouwant Emp C50 0.99891134.7957189 9934.6481222 2006/2/14, Quin Wills [EMAIL PROTECTED]: The question is general for all functions, but here is a specific example - # For the logistic regression of the following

[R] Parallel computing in R for dummies--how to optimize an external model?

2006-02-13 Thread Waichler, Scott R
I am trying to use the optimizing function genoud() with the snow package on a couple of i686 machines running Redhat Linux WS4 . I don't know anything about PVM or MPI, so I just followed the directions in snow and rgenoud for the simplest method and started a socket cluster. My function fn for

[R] R and Power Point

2006-02-13 Thread Erin Hodgess
Dear R People: I'm using R in a time series class. This class is being broadcast live to 2 remote sites via closed circuit TV. My people at the remote sites are having a terrible time seeing the computer screen as it is broadcast(resolution issues). I have decided to put together Power Point

[R] Inverse cumulative probability

2006-02-13 Thread Jan Danielsson
Hello all, (First of all, I'd like to thank all who replied to my previous question. I have never encountered such a helpful community before. Thanks for making a R so welcoming.) To calculate a quantile for normal distributions, one simply uses qnorm(1-a). But if I would want to do the

[R] how I can perform Multivariate Garch analysis in R

2006-02-13 Thread Arun Kumar Saha
Dear aDVISOR, Hope I am not disturbing you. Can you tell me how I can perform Multivariate Garch analysis in R. Also please, it is my humble request let me know some resource materials on Multivariate Garch analysis itself. Sincerely yours, -- Arun Kumar Saha, M.Sc.[C.U.] S T A T I S T I C I A

Re: [R] Correct (was 'weird') behavior of nsmall in format

2006-02-13 Thread Prof Brian Ripley
On Mon, 13 Feb 2006, Adrian Dragulescu wrote: From the help page of format, nsmall should control the number of digits. That's not a quote from the help page. format(0.123456789, nsmall = 10) [1] 0.1234567890 format(0.123456789, nsmall = 1) [1] 0.1234568 format(0.123456789,

Re: [R] Inverse cumulative probability

2006-02-13 Thread Prof Brian Ripley
On Tue, 14 Feb 2006, Jan Danielsson wrote: Hello all, (First of all, I'd like to thank all who replied to my previous question. I have never encountered such a helpful community before. Thanks for making a R so welcoming.) To calculate a quantile for normal distributions, one simply