Displaying 20 results from an estimated 8000 matches similar to: "Hmisc summarize() with level "" in by variable"
2009 Apr 28
1
Cannot update.packages (error message)
When trying to update (various) packages using update.packages() I get the following error message for various packages
package 'fBasics' successfully unpacked and MD5 sums checked
Error in unpackPkg(foundpkgs[okp, 2L], foundpkgs[okp, 1L], lib) :
malformed bundle DESCRIPTION file, no Contains field
>
This happens with other packages besides fBasics (Matrix, as well as others) and I
2009 Apr 28
1
R-2.9.0 malformed bundle DESCRIPTION file, no Contains field
When trying to update (various) packages using update.packages() I get the following error message for various packages
package 'fBasics' successfully unpacked and MD5 sums checked Error in unpackPkg(foundpkgs[okp, 2L], foundpkgs[okp, 1L], lib) :
malformed bundle DESCRIPTION file, no Contains field
>
This happens with other packages besides fBasics (Matrix, as well as others)
2009 Apr 23
0
latex(Hmisc): cgroup + rownames shifts column names
I have submitted this as a bug
(http://biostat.mc.vanderbilt.edu/trac/Hmisc/ticket/29) but I am
wondering if anyone else has seen it or perhaps developed a
workaround. I could certainly fix the LaTeX by hand, but I am using
this inside Sweave, so it is a bit cumbersome. The exact same code
used to work fine, but something changed underneath it. Even so,
perhaps I am using the latex() command
2006 Dec 28
2
Aggregation using list with Hmisc summarize function
Hi All,
I'm using the Hmisc summarize function and used list instead of llist to
provide the by variables. It generated an error message. Is this a bug,
or do I misunderstand how Hmisc works with lists? The program below
demonstrates the error message.
Thanks,
Bob
x<-1:8
group <- c(1,1,1,1,2,2,2,2)
gender<- c(1,2,1,2,1,2,1,2)
mydata<-data.frame(x,group,gender)
2010 Apr 16
3
problem with FUN in Hmisc::summarize
Hi all,
I'd like to use the Hmisc::summarize function, but it uses a function (FUN)
of a single vector argument to create the statistical summaries.
Consider an easy case: I'd like to compute the correlation between two
variables in my dataframe, grouped according to other variables in the same
dataframe.
For exemple, consider the following dataframe D:
V1 V2 V3
A 1 -1
A 1
2006 Apr 19
1
Hmisc + summarize + quantile: Why only quantiles for first variable in data frame?
Hi,
I'm working on a data set that contains a couple of factors and a
number of dependent variables. From all of these dependent variables
I would like to calculate mean, standard deviation and quantiles.
With the function FUN I get all the means and stdev that I want but
quantiles are only calculated for the first of the dependent
variables (column 8 in the summarize command). What do I
2010 Jun 17
2
Multiple plots in a single page and stripplot()
I want to make a 2x2 plot on a single page, using stripplot() and boxplot().
I tried the following two alternatives with mfrow() and layout(), but none
of them worked.
library(lattice)
par(mfrow=c(2,2))
boxplot(X1 ~ Y, data=tst1, horizontal=T, las=1)
boxplot(X2 ~ Y, data=tst1, horizontal=T, las=1)
stripplot(Y ~ X1, data=tst1)
stripplot(Y ~ X2, data=tst1)
par(mfrow=c(1,1))
nf <-
2009 Dec 01
1
An R vs. SAS Discrepancy: How do I determine which is correct?
I was messing around with some data in R and SAS (the reason is
unimportant) fitting a multiple linear regression and got a
curious discrepancy. The data set is too big to post, but if
someone wants it, I can send it.
So, here are the (partial) results:
From R:
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 61.11434 1.48065 41.275 < 2e-16 ***
sexWomen
2010 Apr 13
0
Hmisc::summarize with a dataframe as input?
Hi all,
I'm looking for a function with the same functionalities as Hmisc::summarize
but accepting a dataframe as input (not just a vector or a matrix).
I'd like to compute the correlation between two variables in my dataframe,
grouped according to other variables in the same dataframe.
For exemple, consider the following dataframe D:
V1 V2 V3
A 1 -1
A 1 1
A -1 -1
2009 Jul 21
1
error when installing rjags
Hi All: I get the following error when trying to install the rjags package.
I've installed the
jags software and I'm using Fedora 10.0 and my sessionInfo is at the bottom
of this email.
I'm also sorry if this email ends up having control A's all over it. I still
haven't figured how to fix that. Thanks.
[1] "LOADING MASS LIBRARY"
checking for
2009 Jul 15
0
POSIX, timezones and R-ODBC
Howdy-
I recently upgraded to R 2.9.1 and did the updates for all of my packages. A
few of them now *suggest* the TZ variable to be set, which I did:
> Sys.getenv("TZ")
TZ
""
> Sys.setenv(TZ="America/New_York")
> Sys.getenv("TZ")
TZ
"America/New_York"
Next up:
library(RODBC)
library(quantmod)
channel <-
2009 Apr 24
0
By= levels with the Hmisc summarize function.
Hi, All
I have a data frame as follows:
> attach(mf)
> names(mf)
[1] "centre" "complex" "appl" "pool" "month" "alloc_gb"
I want to summarize this as follows:
agg<-summarize(alloc_gb,by=llist(centre,complex,appl,month),FUN=sum,
na.rm=TRUE)
That seems to run fine but there something odd about the output. The
2009 Oct 02
1
ggplot2: proper use of facet_grid inside a function
Hello Again R Folk:
I have found items about this in the archives, but I?m still not getting
it right. I want to use ggplot2 with facet_grid inside a function with
user specified variables, for instance:
p <- ggplot(data, aes_string(x = fac1, y = res)) + facet_grid(. ~
fac2)
Where data, fac1, fac2 and res are arguments to the function. I have
tried
p <- ggplot(data,
2017 Oct 18
2
Can we disable write to /sys/fs/cgroup tree inside container ?
Hi all
Each lxc container on node have mounted tmpfs for cgroups tree:
[root-inside-lxc@tst1 ~]# mount | grep cgroups
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup
(rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
cgroup on /sys/fs/cgroup/cpuset type cgroup
(rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/memory type cgroup
(rw,nosuid,nodev,noexec,relatime,memory)
cgroup on
2010 May 07
3
[LLVMdev] AsmPrinter behavior
I compile these two lines in llc
@tst1 = internal global [4 x i8] zeroinitializer;
@tst2 = internal global [4 x i8] [i8 0, i8 1, i8 2, i8 3];
@tst1 is emited via MCStreamer::EmitCommonSymbol
while the other is emited via MCStreamer::EmitLabel followed by
MCStreamer::EmitBytes
from what I can tell, only symbols with common linkage should me emitted
by MCStreamer::EmitCommonSymbol,
is this the
2009 Jun 01
2
Sweave:Figures from plot (LME output) not getting generated (pdf or eps)
Hi,
I seem to be facing a strange problem when I use Sweave for creating a
LaTeX document of the R lme() output --- The EPS and PDF figure files
get created, but are empty. I have attached a reproducible example
below (taken from the R lme() help example).
------------------------------------------------------------------------------------
\documentclass[a4paper,10pt]{article}
2010 May 07
1
[LLVMdev] AsmPrinter behavior
On May 7, 2010, at 12:39 AM, Nathan Jeffords wrote:
> On Fri, May 7, 2010 at 12:03 AM, Chris Lattner <clattner at apple.com> wrote:
>
> On May 6, 2010, at 10:01 PM, Nathan Jeffords wrote:
>
> > I compile these two lines in llc
> >
> > @tst1 = internal global [4 x i8] zeroinitializer;
> > @tst2 = internal global [4 x i8] [i8 0, i8 1, i8 2, i8 3];
>
2009 Jun 10
1
Unable to load package:lme4 [ Ubuntu 9.04 ]
Hi folks,
When I try to load package 'lme4' on my Linux box (64-bit Ubuntu
9.04), I get the following error:
-------------------------------------
> library(lme4)
Error in dyn.load(file, DLLpath = DLLpath, ...) :
function 'cholmod_start' not provided by package 'Matrix'
Error: package/namespace load failed for 'lme4'
------------------------------------
I
2009 Sep 04
1
How should a SelfStart function handle illegal parameter values?
Hi Everyone,
I'm trying to write selfStart non-linear models for use with nls. In these
models some combinations of parameter values are illegal; the function value
is undefined.
That's OK when calling the function directly [e.g. SSmodel(x, pars...)]; I
return an appropriate non-value such as NA or Inf.
However, when called from nls [e.g. nls(y~SSmodel(x, pars...), ...)] those
2005 Mar 07
1
Density estimation when an end may not go to zero?
All the density estimators I've found in R seem to force the ends
to go to zero. What can we do if we don't believe that, e.g., with
something that might be a uniform distribution or a truncated normal
with only observations above mu+sigma observed?
The closest I could come to this was to artificially extend the
numbers beyond the range, thereby forcing the density estimator