Re: [R] r question

2017-03-23 Thread Rui Barradas
Hello, Please keep this on the list. I'm cc-ing r-help and so should you always. I got no error, just warning messages. After a long output I got the following. NOTE: HARD MAXIMUM GENERATION LIMIT HIT Solution Fitness Value: -2.592094e+03 Parameters at the Solution (parameter, gradient):

Re: [R] r question

2017-03-22 Thread Rui Barradas
Hello, There's a paenthesis missing in > relativerisk<- matrix(log(c(1,1,2,2),ncol=4,byrow = TRUE) + beta_true<-relativerisk Error: unexpected symbol in: "relativerisk<- matrix(log(c(1,1,2,2),ncol=4,byrow = TRUE) beta_true" The correct instruction would be relativerisk<- matrix(log(c(1,1,2,2))

Re: [R] R question

2013-04-16 Thread arun
HI Philippos, Try this: dat1<- read.csv("Validation_data_set3.csv",sep=",",stringsAsFactors=FALSE) #converted to csv str(dat1) #'data.frame':    12573 obs. of  17 variables: # $ Removed.AGC  : num  65.67 46.17 41.26 14.09 5.38 ... # $ Removed.SST  

Re: [R] R question

2013-02-14 Thread Adams, Jean
Pedro, I only skimmed your question on stackoverflow, but since I had just seen a related post on R-bloggers (http://www.r-bloggers.com), I thought you might be interested. "Out-of-sample one-step forecasts "It is common to fit a model using training data, and then to eval­u­ate its per­for­mance

Re: [R] R question: generating data using MASS

2011-08-29 Thread Ben Bolker
Michael Parent ufl.edu> writes: > > Thanks! > > "This problem isn't uniquely defined. Are you > willing to generate more samples than you need and then throw > away extreme values? Or do you want to 'censor' > extreme values (i.e. set values <= 1 to 1 and values >=7 to 7)?" > > I'd like the

Re: [R] R question: generating data using MASS

2011-08-29 Thread Michael Parent
Thanks! "This problem isn't uniquely defined. Are you willing to generate more samples than you need and then throw away extreme values? Or do you want to 'censor' extreme values (i.e. set values <= 1 to 1 and values >=7 to 7)?" I'd like the retain a normal distribution so I wouldn't want to

Re: [R] R question: generating data using MASS

2011-08-28 Thread Ben Bolker
uf_mike ufl.edu> writes: > > Hi, all! I'm new to R but need to use it to solve a little problem I'm having > with a paper I'm writing. The question has a few components and I'd > appreciate guidance on any of them. > > 1. The most essential thing is that I need to generate some multivariate > n

Re: [R] R question type in Moodle

2009-12-15 Thread Barry Rowlingson
On Tue, Dec 15, 2009 at 8:05 PM, David Kane wrote: > Moodle (www.moodle.org) is an open source course management system, a > competitor to Blackboard. I am writing several hundred R questions > that will be used within the quiz module in Moodle. Unfortunately, > Moodle does not have a built in que

Re: [R] R-question

2009-03-10 Thread jim holtman
Let's assume that you are running on a system with 2GB of memory. All of R's data is held in memory and I would suggest that no single object have more that 25% of memory. That would suggest that 500MB for a single object would be a reasonable limit. If you are working with something like 2M row

Re: [R] [R Question]: regarding exponential axis

2009-03-02 Thread Dieter Menne
Sun, Larry amgen.com> writes: > How to plot exponential axis (i.e. equally spaced .1, 1, 10, 100..)? > I want to use it with xyplot; it would be great if there is a detailed > example. > Thanks a lot! > Sound like what is usually called a logarithmic axis. See parameter log in scales of xyplo

Re: [R] R question - combine values

2009-02-25 Thread markleeds
oops, then i guess i should not have sent the recode suggestion. choonhong: I only sent it as an example of how to recode your factor. I didn't mean to imply ( nor did i even give it much thought ) that what you're doing is statistically/philosophically correct. I'm a friend but I think what D

Re: [R] R question - combine values

2009-02-25 Thread markleeds
Hi: John Fox's recode function in his car package provides a convenient way for doing what you need. I don't know what your factor is specifically but below is mostly taken out of the help for "recode" and shows how to take a factor and recode it to make it a new factor. you can apply that for

Re: [R] R question - combine values

2009-02-25 Thread David Winsemius
You don't. And even if you do get someone to tell you how, you may still not legitimately lower your degrees of freedom. Friends don't let friends use stepwise approaches to regression analysis. -- David Winsemius On Feb 25, 2009, at 10:33 PM, choonhong ang wrote: The district a is the b

Re: [R] R question about prediction from a fitted model

2008-04-26 Thread David Winsemius
Lisa <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > Hi Jorge, > > ... the new question is, > is there any prediction for the cox model? I tried > predict(Surv(y~x),newdata), it only gave the fitted values. Any clue > on this? thanks a lot! I cannot claim great expertise in this area,

Re: [R] R question about prediction from a fitted model

2008-04-25 Thread Lisa
Hi Jorge, thank you very much for your reply. I checked and have got the prediction of new values for lm or glm or nls, the new question is, is there any prediction for the cox model? I tried predict(Surv(y~x),newdata), it only gave the fitted values. Any clue on this? thanks a lot! On 4/25/08,

Re: [R] R question about prediction from a fitted model

2008-04-25 Thread Jorge Ivan Velez
Hi Lisa, See examples in ?predict.lm HTH, Jorge On Fri, Apr 25, 2008 at 7:47 PM, Lisa <[EMAIL PROTECTED]> wrote: > Hi, I have a question about predicting new values from a fitted model in R. > > For example, if i fit a linear model > > fit<-lm(y~x) > > predict(fit) will give the fitted value

Re: [R] R question for Stata users

2008-04-20 Thread Frank E Harrell Jr
Joe Trubisz wrote: > Hi... > > In Stata, there is the ability to display scatter plots with data > points at the same (x,y) > location, using the 'jitter' command of the twoway scatter stata > command. > > Anyone know of a way that I can do the equivalent thing in R? > > For non-Stata reader

Re: [R] R question for Stata users

2008-04-19 Thread John Fox
Dear Joe, See ?jitter. apropos("jitter") or help.search("jitter") would have helped you to discover this. Regards, John On Sat, 19 Apr 2008 19:00:23 -0400 Joe Trubisz <[EMAIL PROTECTED]> wrote: > Hi... > > In Stata, there is the ability to display scatter plots with data > points at the s

Re: [R] R question for Stata users

2008-04-19 Thread Marc Schwartz
Joe Trubisz wrote: > Hi... > > In Stata, there is the ability to display scatter plots with data > points at the same (x,y) > location, using the 'jitter' command of the twoway scatter stata > command. > > Anyone know of a way that I can do the equivalent thing in R? > > For non-Stata reader