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):
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))
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
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 evaluate
its performance
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
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
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
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
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
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
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
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
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
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,
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,
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
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
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
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
19 matches
Mail list logo