Displaying 20 results from an estimated 300 matches similar to: "find weighted group mean"
2001 Mar 22
2
Two-argument functions in tapply()
Hello to all.
My question is very simple...
Let's say we have a data frame with three variables (columns): X, W and F. X
is a numeric variable (e.g. like income) F is a factor (e.g. with 2 levels)
and W is a case weight (data are from household sample but an individual was
interviewed, weights are functions of number of persons in the house hold).
I wanted to compute a means of X weighted
2012 Nov 14
1
Winsorisation function
Dear all,
someone can find what I doing wrong with the following function. It is
for winsorisation mean. At my eyes it is ok, but for reason I sometimes it
is changing the results when I change the k value.
wmean <-
function (x, na.rm = FALSE, k = 1) {
if (any(i.na <- is.na(x))) {
if (na.rm)
x <- x[!i.na]
else return(NA)
}
n
2007 Feb 18
3
User defined split function in rpart
Dear R community,
I am trying to write my own user defined split function for rpart. I read
the example in the tests directory and I understand the general idea of the
how to implement user defined splitting functions. However, I am having
troubles with addressing the data frame used in calling rpart in my split
functions.
For example, in the evaluation function that is called once per node,
2005 Aug 26
1
Help in Compliling user -defined functions in Rpart
I have been trying to write my own user defined function in Rpart.I
imitated the anova splitting rule which is given as an example.In the
work I am doing ,I am calculating the concentration index(ci) ,which
is in between -1 and +1.So my deviance is given by
abs(ci)*(1-abs(ci)).Now when I run rpart incorporating this user
defined function i get the following error message:
Error in
2008 Sep 09
3
Splitting Data Frame into Two Based on Source Array
Dear all,
Suppose I have this data frame:
> data_main
V1 V2
foo 13.1
bar 12.0
qux 10.4
cho 20.33
pox 8.21
And I want to split the data into two parts
first part are the one contain in the source array:
> src
[1] "bar" "pox"
and the other one the complement.
In the end we hope to get this two dataframes:
> data_child1
V1 V2
bar 13.1
pox
1999 Sep 22
2
SAMBA digest 2240
>
Hi,
Check if the shared directory has the write permission for all. i.e. chmod 777 for
the particular directory
> Date: Sun, 19 Sep 1999 21:06:36 -0700
> From: Kenny Cho <Kenny.Cho@Corp.Sun.COM>
> To: samba@samba.org
> Subject: Problem copying files to samba mount.
> Message-ID: <37E5B2CC.9ADC9F8A@ha1pal.corp.sun.com>
> MIME-Version: 1.0
>
2011 Feb 11
4
About classification methods.
Dear R users,
I'm new of the R, I really don't know much.
I want classification some data (two class, many features and huge size of data) by using R.
At this case, I want using Support Vector Machine, Bayes theory based classifier, Discriminant Analysis, Regression based at least.
Which package should I using, and can I compare each classifier result by predictions?
Thank you.
2008 Oct 06
10
DO NOT REPLY [Bug 5811] New: rsync error: error allocating core memory buffers (code 22) at io.c(635)
https://bugzilla.samba.org/show_bug.cgi?id=5811
Summary: rsync error: error allocating core memory buffers (code
22) at io.c(635)
Product: rsync
Version: 3.0.4
Platform: x64
OS/Version: Linux
Status: NEW
Severity: blocker
Priority: P3
Component: core
AssignedTo: wayned@samba.org
2017 Dec 25
2
[Bug 1206] New: segfault when snat map rule has been added
https://bugzilla.netfilter.org/show_bug.cgi?id=1206
Bug ID: 1206
Summary: segfault when snat map rule has been added
Product: nftables
Version: unspecified
Hardware: x86_64
OS: Ubuntu
Status: NEW
Severity: normal
Priority: P5
Component: nft
Assignee: pablo at netfilter.org
2012 Apr 02
6
como hacer grafico de medias con barra de desviacion estandar ??
estimados no he encontrado el modo de hacer en R el tipico grafico de
medias con la desviacion estandar asociada ... me explico, tengo 2
variables numericas, para la variable independiente se elijen 3 niveles y
en cada uno de ellos se mide 15 veces la variable respuesta, para este
data.frame se quiere mostrar en un grafico en el eje X los 3 niveles
escogidos y en el Y la vbla respuesta, pero no e
2006 Jun 23
4
English translation of article on HFSC
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Greetings all,
Working in concert with the original authors, Klaus Rechert and
Patrick McHardy, I have translated their article "HFSC Scheduling
mit Linux" [0] on Hierarchical Fair Service Curve (HFSC) into
English [1].
http://linux-ip.net/tc/hfsc.en/
Although the original content is not available directly from their
website,
2009 Jul 01
5
convert tabular time series into a matrix format
Hi, thanks everyone for any help in advance.
I found myself dealing with a tabular time-series data formatted each row
like [ time stamp, ID, values]. I made a small examples:
X = data.frame(t=c(1,1,1,2,2,2,2,3,3,3,4,4,4,5,5),id =
2023 Jun 23
15
[Bug 3584] New: Segfault when built with optimisations on macOS 13 (x86_64) with Xcode 14.3
https://bugzilla.mindrot.org/show_bug.cgi?id=3584
Bug ID: 3584
Summary: Segfault when built with optimisations on macOS 13
(x86_64) with Xcode 14.3
Product: Portable OpenSSH
Version: 9.3p1
Hardware: amd64
OS: Mac OS X
Status: NEW
Severity: major
Priority: P5
2003 Sep 19
2
About PLS analysis
Dear colleagues,
May you point me out to the PLS module in R system?
I could not find it at all using "PLS" or "partial" as the search keywords.
Thank you.
Sokratis.
----------------------------------
Sokratis ALIKHANIDI, Ph.D.
Department of Knowledge-based Information Engineering
Toyohashi University of Technology
1-1 Hibarigaoka, Tempaku-cho, Toyohashi 441, JAPAN
TEL:
2005 Jul 13
2
convert to chron objects
Hi,
I have a column of a dataframe which has time stamps
like:
> eh$t[1]
[1] 06/05/2005 01:15:25
and was wondering how to convert it to chron variable.
Thanks a lot.
Young.
2007 Dec 24
2
mgarch
Is there a package or function for multivariate garch model in R? I am
having a hard time in locating one. Thanks for help in advance.
-Young
[[alternative HTML version deleted]]
2012 Sep 12
2
[LLVMdev] A Question about LLVM-backend
Hello, all.
I want to manipulate LLVM-backend to emit other compiler's IR, in this
case, VPO's IR.
So, what i want to know is.. Is there a project to be referred? (For
example, "Do LLVM-backend -> GIMPLE" project exist?)
Or, how can I manipulate it easily?
Thanks,
Cho Yeong-pil
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2019 Aug 20
3
[8.0p1] After the remote ssh command execution, the session does not terminate until an active disconnect
Thank you for the reply.
I changed the remote command to a generic example because in our case, we
are using an internal binary that I didn't want to make public. I thought
it wouldn't matter, but apparently, it does. I am sorry I can't share more
about this tool.
BTW, our environment is based on FreeBSD, not on Linux. In our case,
because "isatty" is set to 0, it never
2009 Feb 02
1
Speex for armv6
Hello,
I am trying to build a speex library file for armv6 on intel MAC OS.
I've also put -enable-arm5e-asm whether arm5e-asm works or not.
./configure -prefix=/Users/mijin/temp -disable-shared -enable-static -
enable-fixed-point -enable-arm5e-asm
This gives below errors.
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -I.. -g -
O2 -fvisibility=hidden -MT cb_search.lo -MD
2005 Jun 30
2
Finding out collinearity in regression
Hi, I am trying to find out a collinearity in
explanatory variables with alias().
I creat a dataframe:
dat <- ds[,sapply(ds,nlevels)>=2]
dat$Y <- Response
Explanatory variables are factor and response is
continuous random variable. When I run a regression, I
have the following error:
fit <- aov( Y ~ . , data = dat)
Error in "contrasts<-"(`*tmp*`, value =