FAQ

# R>r-help>July 2003

## 443 discussions - 1,347 posts

• 34

#### [R] (no subject)

hi, can anyone help me about the simple data probability-value of the F-test, respectively p-value, shown in the summary of a linear model? somehow i can not retrieve this data out of R+ into my ...
 Joerg-BurmesterJul 7, 2003 at 11:49 amAug 28, 2003 at 5:36 pm
• 26

#### [R] Excel can do what R can't?????

Hi there I thought this would be of particular interest to people using 'optim' functions and perhaps people involved with R development. I've been beaten down by R trying to get it to perform an ...
 Michael RennieJul 15, 2003 at 5:46 pmAug 4, 2003 at 3:30 pm
• 19

#### [R] inverse prediction and Poisson regression

Hello to all, I'm a biologist trying to tackle a "fish" (Poisson Regression) which is just too big for my modest understanding of stats!!! Here goes... I want to find good literature or proper ...
 Vincent PhilionJul 24, 2003 at 10:07 pmJul 26, 2003 at 5:33 pm
• 14

#### [R] Problem with data.frames

Hi, I just encountered a problem in R that may easily be fixed: If one uses attach for a data.frame e.g. 10000 times and forgets detach, then R gets incredibly slow (less then 10% of the original ...
 Andreas EcknerJul 31, 2003 at 11:39 amAug 4, 2003 at 7:20 pm
• 13

#### [R] info

HI I'm a student in chemical engineering, and i have to implement an algoritm about FIVE PARAMETERS INTERPOLATION for a calibration curve (dose, optical density) y = a + (c - a) /(1+ e[-b(x-m]) where ...
 Andrea CalandraJul 10, 2003 at 3:39 pmJul 17, 2003 at 4:39 pm
• 12

#### [R] reverse array indexing

Hi, Suppose I have a multidimensional array: tmp <- array(1:8, c(2,2,2)) is there a function out there that, given a one-dimensional array index, will return the separate indices for each array ...
 Buchsbaum, Brad (NIH/NIMH)Jul 30, 2003 at 8:42 pmAug 4, 2003 at 8:20 am
• 12

#### [R] Minor nuisance with rw1071

Hola! Starting with rw1071, just after starting Rgui the scope is not with Rconsole, but some other place. This means I have to do a mouse click in the Rconsole before starting to write the first ...
 Kjetil brinchmann halvorsenJul 17, 2003 at 4:42 pmJul 22, 2003 at 1:36 pm
• 11

#### [R] How to make "<-" generic?

Hi, perhaps a little bit unusual: is it possible to use "<- " as generic function with a new signature? The following example doesn't work: An object of class "B" Slot "x": numeric(0) Method ...
 Thomas KoenigJul 26, 2003 at 9:47 amJul 28, 2003 at 2:29 pm
• 11

#### [R] Dismal R performance of Athlon moble CPU?

Thanks for Prof. Ripley and Andy for your technical explantion. It seems that that the real CPU speed has not advanced as fast as these Ghz or other performance indicator suggest. Yes, my program is ...
 Jason LiaoJul 23, 2003 at 9:23 pmJul 26, 2003 at 10:54 am
• 11

#### [R] bug?

Dear R programmers, is there a sensible explanation for the following behaviour? The second command seems not to be interpreted correctly. [1] FALSE TRUE FALSE I am running R version 1.7.1 on XP and ...
 Marc VandemeulebroeckeJul 14, 2003 at 7:29 amJul 15, 2003 at 7:44 am
• 10

#### [R] Formal definitions of R-language.

Hello! Some CS-guys (the type who knows what Church formalism is) keep asking me questions about formal definitions of R-language that I can not answer (or even understand). Is there some freely ...
 M.KondrinJul 17, 2003 at 5:43 pmJul 21, 2003 at 2:35 am
• 9

#### [R] wireframe: how to remove the frame around my plot?

Hi, I've got a wireframe 3D surface plot, but I don't want a frame around it. Is there any way to remove the frame, or (worst case) change the color of the frame to the background color (which looks ...
 Alexis J. DiamondJul 24, 2003 at 7:44 pmJul 25, 2003 at 1:20 pm
• 8

#### [R] how to calculate Rsquare

Hi, I have something like this: Analysis of Variance Table Response: y Df Sum Sq Mean Sq F value Pr( F) x 1 4062.9 4062.9 400.04 2.990e-13 *** f 1 4421.5 4421.5 435.35 1.496e-13 *** Residuals 17 ...
 Ronaldo Reis Jr.Jul 21, 2003 at 3:46 pmAug 27, 2003 at 4:55 pm
• 8

#### [R] R won't connect to the internet on SUSE Linux 8.1

Hi Thanks once again for your help, I do appreciate it..... however.... Here is what I get with your test.... (under tcsh - i normally use bash, but I will keep everything the same) users/mwatson env ...
 michael watson (IAH-C)Jul 25, 2003 at 8:23 amJul 29, 2003 at 3:12 pm
• 8

#### [R] Subsetting a matrix

I'd welcome some comments or advice regarding the situation described below. The following illustrates what seems to me to be an inconsistency in the behaviour of matrix subsetting: [,1] [,2] [,3] ...
 Ted HardingJul 14, 2003 at 9:59 amJul 15, 2003 at 11:01 am
• 8

#### [R] lines and legend

When I am trying to put a legend on a plot where I am using "lines", R just ignores it. I can do it with boxplot or plot, but just not with lines. Am I doing something wrong? Maybe I am just making a ...
 Anna H. PryorJul 1, 2003 at 5:45 pmJul 11, 2003 at 3:56 pm
• 8

#### [R] the huge postscript plot

Hi, I'm just wondering how I can do to make a huge postscript plot be manageable. My question is that I have to draw around 60,000 points which makes it painfully slow to print or view in gv or put ...
 Yongchao GeJul 4, 2003 at 11:06 pmJul 7, 2003 at 2:17 pm
• 8

#### [R] Generating a vector for breaks in a histogram

Hi I have two lots of numbers which I would like to histogram using the hist() function. For comparative reasons, I want them to be on the same scale, which I can use the xlim and ylim options to ...
 michael watson (IAH-C)Jul 3, 2003 at 1:02 pmJul 7, 2003 at 2:59 am
• 7

#### [R] Condition indexes and variance inflation factors

Has anyone programmed condition indexes in R? I know that there is a function for variance inflation factors available in the car package; however, Belsley (1991) Conditioning Diagnostics (Wiley) ...
 Peter FlomJul 23, 2003 at 2:54 pmJul 27, 2003 at 12:48 pm
• 7

#### [R] variable names

Dear helpers I want to use rpart several times in a loop to build a classification tree. My problem is that rpart needs a formula as argument and for that the variables need to have names and this ...
 Luis Miguel Almeida da SilvaJul 22, 2003 at 1:48 pmJul 22, 2003 at 2:40 pm
• 7

#### [R] Looking to maximize a conditional likelihood

I want to maximize a conditional likelihood function that is basically logistic conditional on the number of successes within strata. What would be a good starting place for this? A complication is ...
 Ross BoylanJul 17, 2003 at 9:10 pmJul 18, 2003 at 11:02 am
• 7

#### [R] Why two chisq.test p values differ when the contingency table is transposed?

I'm using R1.7.0 runing with Win XP. Thanks, ...Tao ???????????????????????????????????????????????????????? [,1] [,2] [1,] 149 151 [2,] 1 8 [,1] [,2] [1,] 149 1 [2,] 151 8 Pearson's Chi-squared test ...
 Tao ShiJul 15, 2003 at 7:18 pmJul 16, 2003 at 10:33 am
• 7

#### [R] Memory size

Daer all, I have the problem. I could not run the regression, because I have always the warning message "memory.size". from the help file I learned that it is possible to increase the memory size, ...
 Silika TereshchenkoJul 13, 2003 at 12:54 pmJul 14, 2003 at 5:23 pm
• 7

#### [R] rbind question

Hi I am trying to replicate a vector in n rows for comparison purposes with another matrix. foo <- c(1,2,3) bar <- rbind(foo,foo) # does the trick for 2 rows bar <- rbind(rep(foo,2)) # does something ...
 David AndelJul 8, 2003 at 1:58 pmJul 8, 2003 at 2:15 pm
• 6

#### [R] how to make a plot without any axis-labeling

Hi. I got a problem, perhaps someone can help me....... every time, when I want to plot data, both axis are labeled by default like data[1,] and data[2,] how can I make a plot without ANY labeling? ...
 Michael KirschbaumJul 31, 2003 at 10:22 pmAug 8, 2003 at 11:53 pm
• 6

#### [R] Alignment when rotating text and symbols

I wanted to annotate some points on lines, above and below the lines. I thought the easiest way would be to use text() and two pos values. However I found when the text was rotated the space and ...
 P.b.pynsentJul 29, 2003 at 9:04 amJul 31, 2003 at 4:02 pm
• 6

#### [R] curves with shaded areas?

Hi, I want to make a plot with abline where the area below or above the curve is shaded. I can't find any documentation on that. Can anybody help me with that? thanks, Juffi
 Johannes FuernkranzJul 22, 2003 at 10:10 amJul 22, 2003 at 1:41 pm
• 6

#### [R] Contents of R-help digest.-contouring

R- Users: Can someone indicate what I am during wrong? This is a script essentially from Venerable & Ripley's text on interpolating a surface with loess function but I can not get it to run. Thanks ...
 John lewisJul 21, 2003 at 5:45 pmJul 21, 2003 at 9:19 pm
• 6

#### [R] how to test whether two slopes are sign. different?

Not really r-specific: Z = (b1 - b2) / SQRT ( SEb1^2 + SEb2^2) -------Original Message------- From: Gijsbert Stoet <stoet at volition.wustl.edu Sent: 07/20/03 09:51 PM To: r-help at stat.math.ethz.ch ...
 Brett MagillJul 21, 2003 at 2:12 amJul 21, 2003 at 12:58 pm
• 6

#### [R] ss's are incorrect from aov with multiple factors

Hi, I have been trying to work with error terms given back from aov to make confidence intervals. However, the numbers seem to be incorrect. If there is more than one term in the ANOVA then the error ...
 John ChristieJul 12, 2003 at 12:20 amJul 12, 2003 at 10:47 pm
• 5

#### [R] timezones

I have some questions and comments on timezones. Problem 1. # get current time in current time zone [1] "2003-07-29 18:23:58 Eastern Daylight Time" # convert this to GMT [1] "2003-07-29 22:23:58 GMT" ...
 Gabor GrothendieckJul 31, 2003 at 4:19 amAug 4, 2003 at 6:50 am
• 5

#### [R] Sorting a data frame

Hi there R-Helpers, Does anyone know if it is possible to sort a dataframe? I.e. Sort alphabetically column 1 ( which has some reocurring elements) then sort alphabetically column2 but keeping the ...
 Wayne JonesJul 16, 2003 at 1:42 pmAug 3, 2003 at 8:31 pm
• 5

#### [R] Tktable active cell

Thomas, Getting the active cell is easy, just use : row <- tclvalue(tkindex(table1,"active","row")) col <- tclvalue(tkindex(table1,"active","col")) But if you try to catch the left-button-click event ...
 James WettenhallJul 29, 2003 at 12:47 amJul 29, 2003 at 9:50 am
• 5

#### [R] hi

Guess what I have no clue what i am doing/ meant to do with R. i have just begun statistics for uni and all commands don't seem to work, they say syntax error, we are meant to put a hist.r in but ? ...
 Jill irwinJul 28, 2003 at 6:08 amJul 28, 2003 at 9:26 am
• 5

#### [R] named list 'start' in fitdistr

Hi R lovers! I'd like to know how to use the parameter 'start' in the function fitdistr() obviously I have to provide the initial value of the parameter to optimize except in the case of a certain ...
 Vincent StoliaroffJul 25, 2003 at 2:50 pmJul 25, 2003 at 3:10 pm
• 5

#### [R] variable name of variable in dataframe

Dear list, If I have this toy function: toy <- function(b=.95){ toyframe <- data.frame(lion.95 = c(1, 2)) return(toyframe) } How can I obtain that for any value b, the name of the column becomes ...
 Tobias VerbekeJul 25, 2003 at 10:16 amJul 25, 2003 at 11:23 am
• 5

#### [R] Confidence Band for empirical distribution function

Hi, I was trying to draw an empirical distribution function with uniform confidence bands. So I tried to find a way to calculate values of the Kolmogorov-Smirnov Distribution but failed. I guess it ...
 Leif.BoysenJul 21, 2003 at 1:42 pmJul 24, 2003 at 11:18 pm
• 5

#### [R] animal models and lme

-- Hi R users, I'm trying to fit an animal model using lme and cannot fit the corelation matrix which describes the additive genetic correlation between individuals. I have created a test data set ...
 Jarrod HadfieldJul 23, 2003 at 7:52 amJul 23, 2003 at 2:50 pm
• 5

#### [R] plot character

Dear helpers Is it possible to plot with a desired character? For example "tr" for training error and "te" for test error. I tried plot(x,y,pch="tr") but only appears "t" in the plot
 Luis Miguel Almeida da SilvaJul 22, 2003 at 4:59 pmJul 22, 2003 at 5:31 pm
• 5

#### [R] C compiler to R

Hi, all. I'd like know which is the more appropriate C compiler to use with R programs. Thanks, C. ======================================== Cezar Freitas (ICQ 109128967) IMECC - UNICAMP Campinas, SP ...
 Cezar Augusto de Freitas AnselmoJul 17, 2003 at 3:04 pmJul 21, 2003 at 2:14 pm
• 5

#### [R] R won't connect to the internet

Hi I can't get R to connect to the internet. I am running R 1.7.1 on Windows XP and whenever I try to download packages etc from within R using the internet, it fails. OK so I am behind a firewall ...
 michael watson (IAH-C)Jul 18, 2003 at 9:32 amJul 18, 2003 at 2:32 pm
• 5

#### [R] univariate normal mixtures

Hello, I have a concrete statistical question: I have a sample of an univariate mixture of an unknown number (k) of normal distributions, each time with an unknown mean `m_i' and a standard deviation ...
 Joke AllemeerschJul 17, 2003 at 3:58 pmJul 18, 2003 at 9:07 am
• 5

#### [R] how to handle missing values

This group impresses me, so far I have been helped with all my questions within 24 hours. Thanks. Therefore another one. I am used to programs (such as STATA) where observations with missing values ...
 Tor A StrandJul 16, 2003 at 10:11 amJul 17, 2003 at 10:00 am
• 5

#### [R] turning list-elements into a vector

Hi. Can anyone help me? I want to create a vector from specific matrix-elements( e.g.[1,1]) these matrices are elements of a list. Is there any possibility to work without a loop? (e.g. with ...
 Michael KirschbaumJul 16, 2003 at 2:24 pmJul 16, 2003 at 3:00 pm
• 5

#### [R] .Internal(optim)

 Edoardo AiroldiJul 9, 2003 at 7:33 pmJul 10, 2003 at 3:37 pm
• 5

#### [R] how to sort columns in a matrix?

Hi I am struggling in finding a way to sort columns in a matrix. Can anyone help me, please? Thanks a lot, David
 David AndelJul 9, 2003 at 3:39 pmJul 9, 2003 at 4:52 pm
• 5

#### [R] how to rename rows/columns of a matrix?

Hi I get a matrix with the columns named like "X13 X22 X1 X14 ...", i.e. not successively. That has it's good reasons, but now how can I rename the columns to "X1 X2 X3 ..."? Thanks a lot, David
 David AndelJul 8, 2003 at 4:22 pmJul 8, 2003 at 8:18 pm
• 5

#### [R] Problem with fitdistr for beta

I have the following problem: I have a vector x of data (0<x<=1 ) with a U-shaped histogram and try to fit a beta distribution using fitdistr. In fact, hist(rbeta(100,0.1,0.1)) looks a lot like my ...
 Agustin LoboJul 4, 2003 at 4:16 pmJul 6, 2003 at 4:07 pm
• 5

#### [R] compilation error when installing GLMMGibbs on SuSE Linux 8.2 (R v. 1.7.1)

I getting compilation errors when trying to install GLMMGibbs (see below). I'm running R v 1.7.1 on SuSE Linux 8.2. Has anyone else had this problem? I tried it on a Win2000/R 1.5.1 combination and ...
 Damien JolyJul 3, 2003 at 8:06 pmJul 3, 2003 at 9:05 pm
• 4

#### [R] error with methods on R-1.7.0

Dear All, I just upgraded for R-1.7.0 and it starts with the error message: Error in assign("__MethodMetaData", table, envir = where) : unused argument(s) ( ...) typing Error in ...
 Katalin CsilleryJul 7, 2003 at 4:58 pmOct 6, 2004 at 10:50 am