[R] problem installing R packages in Windows Vista

2008-12-24 Thread norman Maiwashe
** High Priority ** I have recently installed the R program in Windows Vista. However, I am experiencing problem installing some of the packages. Specifically, I wanted to install BRugs package running R as an administrator. I issued the following command in R and received the following error

Re: [R] problem installing R packages in Windows Vista

2008-12-24 Thread Prof Brian Ripley
This is not a problem in R, but with Internet access from your system. It is an FAQ, see http://cran.r-project.org/bin/windows/base/rw-FAQ.html#The-Internet-download-functions-fail_002e Another possibility is to download the file

Re: [R] filling values in a vector using smaller vector

2008-12-24 Thread Patrick Burns
I believe the following does what is wanted: desired - large desired[large] - small Patrick Burns patr...@burns-stat.com +44 (0)20 8525 0696 http://www.burns-stat.com (home of S Poetry and A Guide for the Unwilling S User) Milton Huang wrote: Dear list members: I am looking for an elegant

Re: [R] filling values in a vector using smaller vector

2008-12-24 Thread Wacek Kusnierczyk
Wacek Kusnierczyk wrote: Milton Huang wrote: Dear list members: I am looking for an elegant (or efficient) way to accomplish the following: take a large boolean vector and fill the TRUE values with the values from a smaller boolean vector that has a length that is the number of

Re: [R] 4 questions regarding hypothesis testing, survey package, ts on samples, plotting

2008-12-24 Thread Peter Dalgaard
Ben Bolker wrote: Khawaja, Aman wrote: I need to answer one of the question in my open source test is: What are the four questions asked about the parameters in hypothesis testing? Please check the posting guide. * We don't answer homework questions (open source doesn't mean that other

Re: [R] selecting a subset of a matrix based on a value occurring in 5 records

2008-12-24 Thread Veslot Jacques
mat[,colSums(mat!=0)=5] Jacques VESLOT CEMAGREF - UR Hydrobiologie Route de Cézanne - CS 40061 13182 AIX-EN-PROVENCE Cedex 5, France Tél. + 0033 04 42 66 99 76 fax+ 0033 04 42 66 99 34 email jacques.ves...@cemagref.fr -Message d'origine- De :

Re: [R] Using 'cat' on data frame

2008-12-24 Thread David Winsemius
On Dec 24, 2008, at 2:35 AM, Gundala Viswanath wrote: Dear all, I have the following data frame: raw.count Var1 Freq 1 AA 707 2 AC14 3

[R] Viewing code

2008-12-24 Thread Stephen Collins
How do you view the code for a built-in R command (i.e., if I want to see what R is doing when I run a glm() statement)? Regards, Stephen [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] Fata; error:

2008-12-24 Thread Rowe, Brian Lee Yung (Portfolio Analytics)
Hi Antonio, Sounds like your .RData file might be corrupt. Did you try deleting it (or renaming it) and starting R again? The .RData file should be in the directory where you started R. HTH, Brian -Original Message- From: r-help-boun...@r-project.org

[R] Tick and Label Color in Plot

2008-12-24 Thread Lorenzo Isella
Dear All, I would like to plot two quantities using two different scales along the two vertical y axes. On top of this, I would like to use two different colors (let us say red and blue) for the two vertical axes, their labels, their ticks and the text for each tick. I paste below a code

Re: [R] Viewing code

2008-12-24 Thread jim holtman
since 'glm' is an object, just type its name at the command prompt: glm function (formula, family = gaussian, data, weights, subset, na.action, start = NULL, etastart, mustart, offset, control = glm.control(...), model = TRUE, method = glm.fit, x = FALSE, y = TRUE, contrasts = NULL,

Re: [R] Non-finite finite difference error

2008-12-24 Thread Jason Augustyn
Ravi, thank you for the explanation - that makes perfect sense, and it wouldn't have occurred to me to suspect a negative parameter based on the error. Using the elaborated syntax from the help page yields a lovely fit. Regards, Jason On Wed, Dec 24, 2008 at 10:57 AM, Ravi Varadhan

Re: [R] filling values in a vector using smaller vector

2008-12-24 Thread Wacek Kusnierczyk
Milton Huang wrote: Thank you both for such beautiful solutions. Just what I was looking for! I love the Internet, R, and the R-list! There is so much opportunity to learn. In fact, looking at the replace function, I see the two solutions are the same: replace function

[R] statistical significance, nonlinear regression

2008-12-24 Thread adam99
I am using nonlinear regression to fit a couple of variables to a set of measurements. I would like to do some significance tests for the estimated parameters. I am able to check the confidence intervals using the Jacobian coming out of nonlinear regression. I do see in a paper which shows

[R] How to skip re-installing CRAN packages when updating R?

2008-12-24 Thread Sean Zhang
Dear R-helpers: I am new to R and would like to seek your expert opinion on installation tip. Many thanks in advance. I want to update my R to the newest version and wonder the following two questions: Question 1: How can I install R and its contributed packages in a way so when updating R in

Re: [R] snowfall sfInit error

2008-12-24 Thread Jochen Knaus
Dear Mr. Ripley, snowfall 1.7 is finished, and is now working on Windows as intended - sorry for my oversight of that error. The given example now runs (as a sidenote: snow does not have to loaded explicitely, snowfall will do that). Also the NWS startup is fixed now (thanks to M.

[R] Implementing a linear restriction in lm()

2008-12-24 Thread Serguei Kaniovski
Dear All! I want to test a coeffcient restriction beta=1 in a univariate model lm (y~x). Entering lm((y-x)~1) does not help since anova test requires the same dependent variable. What is the right way to proceed? Thank you for your help and marry xmas, Serguei Kaniovski

[R] command Polygenic gives error message concerning dimensions of data

2008-12-24 Thread Veerle Bogaert
Dear Sir/Madam, Since a few day now I try to use the command polygenic from the GenAbel package. However, I keep bumping up against an error message: Error in polygenic(Testo, kin = kinship, data = data1) : dimension of outcome and kinship.matrix do not match. My data exists of 1240

[R] overwrite title

2008-12-24 Thread whizvast
Hi, useRs- I have a plot with a title generated automatically. I need to overwrite the title, but I can't figure out how to do that. I've tried the following: title( abc, bg='white') But, that does not set the title background as white. Now I am stuck and need your help. Thanks- -- View

Re: [R] overwrite title

2008-12-24 Thread David Winsemius
Lacking specifics about what you actually did, one can only guess. Have you yet tried setting ..., main = , within the plot call, whatever that might have been? Failing that, the way to specify the color of the main argument to title() is not bg (which is an argument for the plot

Re: [R] statistical significance, nonlinear regression

2008-12-24 Thread Bert Gunter
Tests of statistical significance and/or confidence intervals for individual parameters in nonlinear regression are often meaningless and misguided. Nonlinear regression is **inherently** different than linear regression. It may make no physical sense whatever to eliminate *any* of the parameters

Re: [R] statistical significance, nonlinear regression

2008-12-24 Thread David Winsemius
On Dec 24, 2008, at 6:20 PM, adam99 wrote: I am using nonlinear regression to fit a couple of variables to a set of measurements. I would like to do some significance tests for the estimated parameters. I am able to check the confidence intervals using the Jacobian coming out of

Re: [R] statistical significance, nonlinear regression

2008-12-24 Thread Gabor Grothendieck
See ?confint2 in the nlrwr package for confidence intervals and for more info on hypothesis testing in nonlinear regression focused on R see the book associated with that package. On Wed, Dec 24, 2008 at 6:20 PM, adam99 adamquest...@gmail.com wrote: I am using nonlinear regression to fit a

[R] Class and object problem

2008-12-24 Thread Odette Gaston
Dear all, I have a problem with accessing class attributes. I was unable to solve this yet, but someone may know how to solve it. I'm trying to extract some information from the summary, and Akaike weight has the desired value. Object for a model fitted using the glmmML function from the glmmML