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 ,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
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
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
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
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
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
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
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 (
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
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
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
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
Hello,
Im a french student in Master level Statistics and Econometrics . Now Im
in training for a marketing firm.
I dont 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
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
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
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
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
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
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
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
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
32 matches
Mail list logo