by(dataFrame, groupId, FUN) applies FUN a bunch of data.frames (row subsets
of the dataFrame input). mean() returns NA for data.frames. You could use
FUN=colMeans if you wanted column means or FUN=function(x)mean(colMeans(x))
or FUN=function(x)mean(unlist(x)) if you wanted some version of a grand
Rolf,
Thank you!
John
> John David Sorkin M.D., Ph.D.
> Professor of Medicine
> Chief, Biostatistics and Informatics
> University of Maryland School of Medicine Division of Gerontology and
> Geriatric Medicine
> Baltimore VA Medical Center
> 10 North Greene Street
> GRECC (BT/18/GR)
> Baltimore,
You are trying to take the mean of data frames. There is no
"data.frame" method for mean().
Try:
by(hold,Arm,function(x){sapply(x,mean)})
BTW what's the point of "na.rm=TRUE" in your call? There are no missing
values in the data that you present.
In future, please use dput() to present
When I run by, I get an error message and no results. Any help in understanding
what is wrong would be appreciated.
Error message:
Warning messages:
1: In mean.default(data[x, , drop = FALSE], ...) :
argument is not numeric or logical: returning NA
2: In mean.default(data[x, , drop = FALSE], .
Hi Calum,
Does this include an error tolerance for the match between the ordered and
delivered quantities? That is, is it okay to have a maximum of one unit
difference or do deliveries have to exactly match orders?
Jim
On Sun, Dec 27, 2015 at 10:08 PM, Polwart Calum (COUNTY DURHAM AND
DARLINGTON
Yes. This is an _email_ group. It is not a web based discussion group.
There is an "archive" of emails somewhere around, but the proper (at least
IMO) way to ask a new question is to send a new email. A bit "old
fashioned", but in many way it is simpler for people on many different
types of compute
Do you know what sort of S+ objects do not survive the
dump-from-S+-source-into-R procedure unscathed? E.g., do you have S4
classes that don't make it or certain classes
of data objects?
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Sat, Dec 26, 2015 at 3:17 AM, Kim Pilegaard wrote:
> I have
Hello,
Try using an equal sign after 'sigma':
algo=maxNR(loglikelihood,
start=c(sigma=8.686603,beta1=-4.976215,beta2=7.313875))
Hope this helps,
Rui Barradas
Citando Emma MONTARSOLO :
> Hi !
>
> I use maxNR function (from maxLik package) to estimate parameters
> via maximum likelihood a
Hi !
I use maxNR function (from maxLik package) to estimate parameters via maximum
likelihood and Newton–Raphson method.
Context :
I have a variable Y which follows a Gumbel distribution of parameters Beta1X1 +
Beta2X2 (location parameter) and sigma (scale parameter).
I have to estimate sigma,
This e-mail is confidential. It may also be legally privileged. If you are not
the addressee you may not copy, forward, disclose or use any part of it. If you
have received this message in error, please delete it and all copies from your
system and notify the sender immediately by return e-mail.
I am currently working on a project that is producing Gigabyte sized vectors
that kill R. It can take 24 hours to run. So frustrating to get that far and
have to scale back my inputs and rerun...
The problem i'm trying to solve as i see it is very similar to optimal currency
denominations pro
I have many old datasets, scripts and functions written in S-Plus. I want to
transfer these to R. Basically, I want to transfer my old chapters (.Data)
entirely to R and have tried with dump(�., oldStyle =T). However, this is not
very successful; R cannot digest the dump files entirely.
Therefo
12 matches
Mail list logo