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))

[R] r question

2017-03-22 Thread 謝孟珂
Hi ,I have some question about simulate, I don't know how to paste question to this website,so I paste below. I use genoud to find the maximum likelihood value, but when I use numcut=3 ,it will get error message,like this " coxph.wtest(fit$var[nabeta, nabeta], temp, control$toler.chol) : NA/NaN/Inf

[R] R question about intraindividual variables

2014-03-13 Thread Nastassia Hajal
I am creating variables representing intraindividual means and standard deviations for longitudinal data with the following code: data$TraitHAPPYmean <- with(data, ave(Happy, ID, FUN=function(x) mean(x, na.rm=TRUE) ) ) & data$TraitHAPPYsd <- with(data, ave(Happy, ID, FUN=function(x) sd(x, na.rm

[R] R question

2014-02-02 Thread dvf208
I have generated a L1 penalized Cox model using the penalized package in R. I used the optL1() function to generate the Breslow object (see below): fit <- optL1(surv.obj, penalized = ..., etc) In the reference manual, it says the fit$predictions are the cross-validated predictions for the left

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

[R] R question

2013-02-13 Thread Pedro Carvalho
Hello, I have submitted a R question to stackoverflow and have not received an answer. Could anyone help me out? http://stackoverflow.com/questions/14825443/backtesting-accuracy-of-regression-model-through-rolling-window-regression-with Best regards, Pedro

[R] R-question about html writer: hwriter; how to create scroll for matrices?

2012-02-10 Thread Bornhauser Hanspeter
Dear All This is the first time I use this help forum. My apologies in case I did not follow a predefined format. My question: I use the package "hwriter". How can I produce a matrix (html) that allows scrolling (up and down, left and right) or, alternatively, prduces a fixed row for the hea

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

[R] R question: generating data using MASS

2011-08-28 Thread uf_mike
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 normal data on a restricted integer range (

[R] R question: memory usage

2010-12-10 Thread simon lu
Hi I have a large R progress that that is constently running into memory issues, I am trying to rewrite some of the code to make more efficeint However, one thing I have found is that the memory usage shown by gc() is very different from what i see from unix termilnal Garbage collection 2047 = 1

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

[R] R question type in Moodle

2009-12-15 Thread David Kane
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 question type for R. You can read about the different questions

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

[R] R-question

2009-03-10 Thread thabet chelligue
Hello, I’m a french student in Master level “Statistics and Econometrics” . Now I’m in training for a marketing firm. I don’t find the information about the capacity of R . Can you tell me how much lignes and colones can R manipulates? Can I work with a data of 2 milions lignes? When I a

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

[R] [R Question]: regarding exponential axis

2009-03-02 Thread Sun, Larry
Hi there, 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! Larry __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listin

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

[R] R question - combine values

2009-02-25 Thread choonhong ang
The district a is the baseline and we observe the difference between District a & b is not significant, we can choose to combine these 2 values. How to write code to combine these 2 value ? > m1=glm(Claims~District+Group+Age+log(Holders),fami ly=poisson,data=mydata) > summary(m1) Call: glm(formul

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

[R] R question about prediction from a fitted model

2008-04-25 Thread Lisa
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 values for each x. I am wondering if there is a way to do some prediction of the fitted for some new values of x that are not in the d

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

[R] R question for Stata users

2008-04-19 Thread Joe Trubisz
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 readers, if jitter is enabled in stata, and n