Displaying 20 results from an estimated 7000 matches similar to: "combining same-day lab measurements with 'apply'"
2002 Dec 04
1
using edit.data.frame
dum is a simple data frame transferred to Splus using the dump()
command in Splus and the source() in R. All fields are numeric. There
are no missing data. The data frame looks like it is should:
> apply(dum,2,mode)
yrcl sland s02 s234
"numeric" "numeric" "numeric" "numeric"
> apply(dum,2,is.vector)
yrcl sland s02 s234
2017 Jan 09
1
problem with print.generic(x)deparse(substitute(x))
Hi, Peter et al.:
On 2017-01-09 4:24 AM, peter dalgaard wrote:
> On 09 Jan 2017, at 10:53 , Spencer Graves <spencer.graves at prodsyse.com> wrote:
>
>> # Define an object of class 'dum'
>> k <- 1
>> class(k) <- 'dum'
>> str(k) # as expected
>>
>> # Define print.dum
>> print.dum <- function(x, ...)
>>
2017 Jan 09
2
problem with print.generic(x)deparse(substitute(x))
Hi, All:
I'm having trouble getting deparse(substitute(x)) inside
print.generic to consistently
I'm having trouble getting a print.something to work
consistently. Consider the following toy example:
# Define an object of class 'dum'
k <- 1
class(k) <- 'dum'
str(k) # as expected
# Define print.dum
print.dum <- function(x, ...)
2005 Mar 09
2
Question about biasing in sd()???
Hi,
Can anyone help me with the following. I have been using R for Monte
Carlo simulations and got some results I couldn't explain. Therefor I
performed following short test:
--------------
mean.sds <- NULL
sample.sizes <- 3:30
for(N in sample.sizes){
dum <- NULL
for(I in 1:5000){
x <- rnorm(N,0,1)
dum <- c(dum,sd(x))
}
mean.sds<- c(mean.sds,mean(dum))
}
2010 Mar 23
2
Adding matrix rows that have the same name?
Does anyone know if there is an R function that will take a matrix like this
jim 1 0 0 0 0 0
jim 0 1 0 0 0 0
jim 0 0 1 0 0 0
bob 1 0 0 0 0 0
bob 0 0 1 0 0 0
harry 0 0 1 0 0 0
harry 0 0 0 1 0 0
harry 0 0 0 0 1 0
harry 0 0 0 0 0 1
and make it like this? (that is, add together rows that have the same name?)
jim 1 1 1 0 0 0
bob
2013 Jan 28
2
Why are the number of coefficients varying? [mgcv][gam]
Dear List,
I'm using gam in a multiple imputation framework -- specifying the knot
locations, and saving the results of multiple models, each of which is
fit with slightly different data (because some of it is predicted when
missing). In MI, coefficients from multiple models are averaged, as are
variance-covariance matrices. VCV's get an additional correction to
account for how
2011 Mar 16
3
making dataframes
Dear all,
I have a dataframe which looks like this (dummy):
date<-c("jan", "feb", "mar", "apr", "may", "june", "july",
"aug","sep","oct","nov","dec")
col1<-c(8.2,5.4,4.3,4.1,3.1,2.5,1.1,4.5,3.2,1.9,7.8,6.5)
col2<-c(3.1,2.3,4.7,6.9,7.5,1.1,3.6,8.5,7.5,2.5,4.1,2.3)
1999 Jul 15
2
S objects to R
I've tried to move objects from S to R.
In S+, I use data.dump() and data.restore().
I've made a file all.dum using
data.dump(ls()) in S+,
but the R command
load("all.dum") gives an error:
> load("/jaz/all.dum")
Error: restore file corrupted -- no data loaded
Is there any way to pass my objects from S+ to R?
Thanks
Agus
Dr. Agustin Lobo
Instituto de Ciencias de
2006 Mar 18
1
Time-Series, multiple measurements, ANOVA model over time points, analysis advice
Hi,
I have some general questions about statistical analysis for a research
dataset and a request for advice on using R and associated packages for a
valid analysis of this data. I can only pose the problem as how to run
multiple ANOVA tests on time series data, with reasonable controls of the
family-wise error rate. If we run analysis at many small sections of a long
time-series, the Type-I
2012 Jan 26
2
Quality of fit statistics for NLS?
Dear all,
I am trying to analyze some non-linear data to which I have fit a curve of
the following form:
dum <- nls(y~(A + (B*x)/(C+x)), start = list(A=370,B=100,C=23000))
I am wondering if there is any way to determine meaningful quality of fit
statistics from the nls function?
A summary yields highly significant p-values, but it is my impression that
these are questionable at best given
2017 Jun 27
0
Slow write times to gluster disk
Hi Soumya,
One example, we have a common working directory dri_fleat in the gluster
volume
drwxrwsr-x 22 root dri_fleat 4.0K May 1 15:14 dri_fleat
my user (phaley) does not own that directory but is a member of the
group dri_fleat and should have write permissions. When I go to the
nfs-mounted version and try to use the touch command I get the following
ibfdr-compute-0-4(dri_fleat)%
2019 Sep 18
2
How to debug passes
> opt -load libdummypass.so -dummypass hello.ll
Looks like you are loading a shared library different from "LLVMHello.so".
did you change the name of the compilation unit from "Hello.cpp" into
"dummypass.cpp"?
(As asked previously by Andrzej) did you register the dummy pass?
> RegisterPass<DummyPass> X("dummypass",
2017 Jun 30
2
Slow write times to gluster disk
Hi,
I was wondering if there were any additional test we could perform to
help debug the group write-permissions issue?
Thanks
Pat
On 06/27/2017 12:29 PM, Pat Haley wrote:
>
> Hi Soumya,
>
> One example, we have a common working directory dri_fleat in the
> gluster volume
>
> drwxrwsr-x 22 root dri_fleat 4.0K May 1 15:14 dri_fleat
>
> my user (phaley) does
2019 Sep 16
2
How to debug passes
Hi,
Could you please confirm the following steps for debugging a pass?
1. copy your pass into llvm/lib/Transforms/Hello/Hello.cpp
2. name you pass Hello
3. insert debug messages like:
errs() << "Visiting function " << F.getName();
4. get LLVM bitcode: clang -O3 -emit-llvm hello.c -c -o hello.bc5. disassemble the bitcode:
llvm-dis hello.bc
6. run the pass on
2010 Dec 16
1
predict.lm with new regressor names
Hi all,
Suppose:
y<-rnorm(100)
x1<-rnorm(100)
lm.yx<-lm(y~x1)
To predict from a new data source, one can use:
# works as expected
dum<-data.frame(x1=rnorm(200))
predict(lm.yx, newdata=dum)
Suppose lm.yx has been run and we have the lm object. And we have a
dataframe that has columns that don't correspond by name to the
original regressors. I very! naively assumed that doing
2013 Feb 21
2
Arimax with intervention dummy and multiple covariates
Hi
I'm trying to measure the effect of a policy intervention (Box and Tiao, 1975).
This query has to do with the coding of the model rather than with the particulars of my dataset, so I'm not providing the actual dataset (or a simulated one) in this case, apart from some general description.
The time series are of length n=34 (annual observations between 1977 and 2010). The policy
2017 Jul 03
0
Slow write times to gluster disk
On 06/30/2017 07:56 PM, Pat Haley wrote:
>
> Hi,
>
> I was wondering if there were any additional test we could perform to
> help debug the group write-permissions issue?
Sorry for the delay. Please find response inline --
>
> Thanks
>
> Pat
>
>
> On 06/27/2017 12:29 PM, Pat Haley wrote:
>>
>> Hi Soumya,
>>
>> One example, we have a
2014 Feb 04
1
NFS not recognizing available file space
Hi,
I have a server running under CentOS 5.8 and I appear to be in a
situation in which the NFS file server is not recognizing the available
space on a particular disk (actually a hardware RAID-6 of 13 2Tb disks).
If I try to write to the disk I get the following error message
[root at nas-0-1 mseas-data-0-1]# touch dum
touch: cannot touch `dum': No space left on device
However, if I check
2019 Sep 18
2
How to debug passes
Iulia,
You need to check the contents of the hello.ll (or hello.bc) file rather
than the input *.c file - ultimately that's what opt consumes.
Try compiling without any optimisations:
clang -O0 -emit-llvm -S hello.c -c -o hello.ll
-Andrzej
On 18/09/2019 11:34, iulia_s24 wrote:
> Hi,
>
> Actually I copy-pasted step 5 from the article in which I found the
> solution, in the text
2017 Jul 03
2
Slow write times to gluster disk
Hi Soumya,
When I originally did the tests I ran tcpdump on the client.
I have rerun the tests, doing tcpdump on the server
tcpdump -i any -nnSs 0 host 172.16.1.121 -w /root/capture_nfsfail.pcap
The results are in the same place
http://mseas.mit.edu/download/phaley/GlusterUsers/TestNFSmount/
capture_nfsfail.pcap has the results from the failed touch experiment
capture_nfssucceed.pcap has