Displaying 20 results from an estimated 200 matches similar to: "New Sampling question"
2010 Nov 15
5
Sampling problem
Hey,
I am hoping someone can help me with a sampling question.
I have a data frame of 8 variables (the first column is the subjects' id):
SubID CSE1 CSE2 CSE3 CSE4 WSE1 WSE2 WSE3 WSE4
1 6 5 6 2 6 2 2 4
2 6 4 7 2 6 6 2 3
3 5 5 5 5 5 5
2010 Nov 16
2
Computing Rolling Average
Hi,
Can anyone suggest a clever way to compute a rolling weekly average of the
columns in a matrix? The column bit is straightforward – use apply given a
function which does what you want on a column. With regard to a particular
column, the obvious way is to run a for loop indexing the last 7 days and
computing the average . I simply would like to know if there is a better /
quicker way.
2013 Nov 05
0
Sampling question
Hi,
You may try:
dat1 <- structure(list(SubID = 1:8, CSE1 = c(6L, 6L, 5L, 5L, 5L, 5L,
3L, 3L), CSE2 = c(5L, 4L, 5L, 4L, 6L, 4L, 6L, 6L), CSE3 = c(6L,
7L, 5L, 3L, 7L, 3L, 6L, 6L), CSE4 = c(2L, 2L, 5L, 4L, 5L, 6L,
3L, 3L), WSE1 = c(6L, 6L, 5L, 4L, 6L, 4L, 6L, 6L), WSE2 = c(2L,
6L, 5L, 4L, 4L, 3L, 5L, 5L), WSE3 = c(2L, 2L, 4L, 5L, 4L, 7L,
2L, 4L), WSE4 = c(4L, 3L, 5L, 2L, 1L, 3L, 1L, 7L)),
2009 Dec 29
2
Components missing for installation
I have tried to install an e-banking application. When I launch the installer of this application, I get the following message:
------
The installer has detected that this version of Windows is not ready. The following components are missing:
MDAC 2.1 (install manually)
MDAC 2.6 (install manually)
JET 4.0 SP5 (install manually)
Microsoft MSXML 4.0 SP2
Microsoft MSXML 4.0 SP2 Parser
msvcp60.dll C++
2006 Mar 31
2
How to secure web services created by ActionWebService?
Hi,
Does anyone know how I can go about securing web services created from
ActionWebService? The manual from rubyonrails.org
(http://manuals.rubyonrails.com/read/book/10) doesn''t say anything at
all on this ... or do I have to implement my own access control?
--
Sau Sheong
http://www.saush.com
http://read.saush.com
http://jaccal.sourceforge.net
-------------- next part
2006 Apr 28
1
function for linear regression with White std. errors
I would like to know if there is a function that will run a linear
regression and report the White (heteroscedasticity consistent) std.
errors.
I've found the hccm() function in the car library, but that just gives
me the White covariance matrix. I'd like to be able to see the White
std. errors without having to do much more work, if possible.
Thanks,
Brian
2003 Jun 12
1
mkstemp permission denied
We are using rsync to push DNS records from one machine (running rsync
2.5.6 as a client process on Debian woody) to a collocation server (
running rsync 2.5.6 as a daemon on RedHat 7.3). To test this process we
are using a script that pushes one file from the Debian box to the
collocation server. It appears that a file transfers, but upon checking there is
no file transfer and an error in the
2006 Feb 02
0
ANN: WSS4R was released
Hi everyone,
I released WSS4R:
http://www.rubyforge.org/projects/wss4r.
WSS4R is a subset of a web service security standards implementation.
It''s based on soap4r and tested with Microsoft .NET WSE 2.0 and Sun Java
JWSDP 2.0. WSS4R supports username authentication, signing and
encryption. It also has limited support for actionwebservice / rails.
Currently, there is no documentation,
2008 Sep 08
2
Read from url requiring authentication?
Hi all,
I'm looking into opening an url on a server which requires
authentication.
After failing to find some kind of connection structure to fill in I
turned to explicitly stating the credentials in the url itself (e.g.
"http://username:pass at site.com").
Sadly this didn't do the trick either and both source() and url()
failed trying to resolve the username ()
Is there
2012 Apr 23
2
plot function creating bars instead of lines
Hello,
I am having a problem where code that plots lines using a different data
frame plots bars with the current data frame (I am intended to plot lines).
The code specifies lines (see below), so I can't figure out why the results
are bars. I suspect that it may have something to do with the fact that in
the data frame where the code worked as intended, the both variables
specifying
2002 Oct 08
2
data.frame merge matching several columns
Greetings,
Is it possible to match several columns in a merge statement? Here is my
problem:
data1 looks like this...
SUBID TARGID ITEM RATING
1 1 1 4
1 1 2 5
1 1 3 3
1 1 4 2
1 1 5 5
......
SUBID is the ID for the raters, TARGID is the ID for the targets being
rated, ITEM ranges from 1 to 64 crossed
2012 Mar 19
2
by output into data frame
I could do this in various hacky ways, but what's the right way?
I have a nice application of the by function, which does what I want. The output looks like this:
> auc_stress
lab.samples.stress$subid: 2
cortisol amylase
1 919.05 6834.8
---------------------------------------------------------------------------------------------------------------------------
2011 Jan 18
3
error message
I was running a sampling syntax based on a data frame (ago) of 160 rows and
25 columns. Below are the column names:
> names(ago)
[1] "SubID" "AGR1" "AGR2" "AGR3" "AGR4" "AGR5" "AGR6" "AGR7"
"AGR8"
[10] "AGR9" "AGR10" "WAGR1" "WAGR2"
2013 Apr 30
2
R Function to extract columnNames
Hi,
May be this helps:
funcName<- function(df1, x){
?whatCol=df1[[x]]
?print("Got it")
?print(whatCol)
?}
?
funcName(df,"ColA")
#[1] "Got it"
#[1] 1 2 3 4 5
? funcName(df,"ColB")
#[1] "Got it"
#[1] A B C D E
#Levels: A B C D E
A.K.
>I am trying to extract the 2nd column from a dataframe using a function
called funcName. Note this is an
2010 Apr 30
2
deriving mean from specific cases
Hi all,
I have a large dataset that has >10k entries. The dataset is stored in a
dataframe with the headers:
SubID Condition1 Condition2 Result1 Result2
There are multiple entries for a given SubID(Subject ID). Condition 1 has 3
levels and condition2 has 2 levels (therefore there are 6 possible
combinations all together e.g. Cond1 Level1 x Cond2 Level 1 etc.) and i need
to compute for
1. The
2007 Aug 01
1
Problem to remove loops in a routine
Dear R-users,
I have written the following code to generate some trellis plots. It
works perfectly fine except that it is quite slow when it is apply to my
typical datasets (over several thousands of lines). I believe the
problem comes from the loops I am using to subset my data.frame. I read
in the archives that the tapply function is often more efficient than a
loop in R. Unfortunately ,
2008 Oct 02
1
Shadowed Plot
Hello R-users
Kindly assist me with the following plot problem in R-
My data looks like this (shortened because I have about 5000 observations).
dat <- read.table(textConnection("Id Time Y
1 0 194
1 5.22 179
1 5.97 190
2 1.61 265
2 2.1 234
2 16.4 300
2 29.5 345
3 0 212
3 0.36 213
4 0 199
4 1.23 203
5 0 212
5 13.5 216
6 0 222
6 1.6 234" ), header =
2011 Jan 11
1
how to sort new data frame based on the original data frame
I have a really simple question
I have a data frame of 8 variables (the first column is the subjects' id):
SubID G1 G2 G3 G4 W1 W2 W3 W4
1 6 5 6 2 6 2 2 4
2 6 4 7 2 6 6 2 3
3 5 5 5 5 5 5 4 5
2001 Feb 27
1
Patch to coplot.R
---1149173172-1804289383-983267779=:26068
Content-Type: TEXT/plain; charset=us-ascii
Hello,
and a big thank you for providing R!
Please find attached a diff for coplot which you may want to consider
for the next release. The diff is against R 1.2.2. The reasons for this
patch are:
1. The boxes of coplot did not align very well with the panel graphs if
applied to a factor
2. Putting the
2012 Aug 30
0
[PATCH 05/11] vmci_event.patch: VMCI kernel events handling.
Signed-off-by: George Zhang <georgezhang at vmware.com>
---
drivers/misc/vmw_vmci/vmci_event.c | 448 ++++++++++++++++++++++++++++++++++++
drivers/misc/vmw_vmci/vmci_event.h | 25 ++
2 files changed, 473 insertions(+), 0 deletions(-)
create mode 100644 drivers/misc/vmw_vmci/vmci_event.c
create mode 100644 drivers/misc/vmw_vmci/vmci_event.h
diff --git