hi netters
i have a vector NAMES containing a series of variable names:
NAMES=c(x,r,z,m,st,qr,.nn).
i wanna fit a regression tree by using the code:
my.tree-tree(y~x+r+z+m+nn,my.dataframe)
but i don't want to type out x+r+z+m++nn one by one, as there are so
many
Hi netters,
I want to learn a decision tree from a series of instances (learning data).
The packages
tree or rpart can do this quite well, but the scoring functions (splitting
criteria) are
fixed in these packages, like gini or something. However, I'm going to use
another scoring
function.
Hi netters.
Assume Y = {Y1,.Yn} and X = {X1..Xm}, where Yi and Xi are random
variables that can take on discrete values from V={0,1,2}.
Each Yi in Y has some (0-k) parent variables in X, which means given the
values of the parent variables (Xi0Xik) the values of Yi is set. Yi =
hi netters:
I have a series of discrete variables which form a network and I want to
learn the network structure from some training data. I could have used
packages like deal but there are two problems.
First of all, I have 1 variables. So the possible network structure is
awfully huge,
.
Thank you.
From: Achim Zeileis [EMAIL PROTECTED]
To: zhihua li [EMAIL PROTECTED]
CC: r-help@stat.math.ethz.ch
Subject: Re: [R] learning networks with a large number of variables and
pre-set parents.
Date: Fri, 25 Mar 2005 11:40:46 +0100 (CET)
This is the second time within 24 hours that you cross
I have 100 cases. So i think the dimension is (100, 1).
The PC has a pentium 4 CPU with 512M memory. I don't know if it is enough?
From: Christian Schulz [EMAIL PROTECTED]
To: zhihua li [EMAIL PROTECTED]
CC: r-help@stat.math.ethz.ch
Subject: Re: [R] learning networks with a large number
where I can download and install these packages? Thanks a lot!
Zhihua Li
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
interface. My local machine is a mac, I don't know if that's the problem.
From: Fran�ois Pinard [EMAIL PROTECTED]
To: zhihua li [EMAIL PROTECTED]
CC: r-help@stat.math.ethz.ch
Subject: Re: [R] install R under suse: packages dependency
Date: Wed, 3 May 2006 21:24:24 -0400
[zhihua li]
I'm trying
even
though I launched the yast2 ncurses, I couldn't use it.
As for the installation sources, you meant suse or r?
Zhihua Li
From: Larry Howe [EMAIL PROTECTED]
To: r-help@stat.math.ethz.ch
Subject: Re: [R] install R under suse: packages dependency
Date: Wed, 3 May 2006 22:40:28 -0400
hi netters,
I'm a newbie to R and there are some very simple problems puzzeled me for
two days.
I've a dataframe here with several columns different in modes. Two of the
columns are special for me: column 1 has the mode factor and column 2 has
the mode numeric vectors.
The values for column 1
hi netters
I have a rather simple question. I have a data frame with two variables X
and Y, both of which are factors. X has 100 levels while Y has 10 levels
only. The data frame has 100 rows in all, so for X the values are unique,
and Y has many replicate values. Now I wanna reduce the
hi netters
Suppose I have a factor X, with 10 elements and 3 levels: A B B C A C B A C
C .
It is easy to count the number of elements for each level:
tapply(X,X,length).
Now I have another factor Y, which formed a matrix with X:
X| A B B C A C B A C C
Y| B B C C C A A A B B
I wanna count
hi netters
Is there a function in R that can compute the quotient and remainder of a
division calculation? such that when 11 is given as the dividend and 5
the divider, the function returns 2(quotient) and 1(remainder).
Thanks a lot!
[EMAIL PROTECTED]
To: zhihua li [EMAIL PROTECTED]
CC: r-help@stat.math.ethz.ch
Subject: Re: [R] quotient and remainder
Date: Thu, 23 Jun 2005 09:01:08 +0200
11%/%5
[1] 2
11%%5
[1] 1
Best,
Dimitris
p.s., I'd suggest you to take a look at the An Introduction to R
doc
Dimitris Rizopoulos
Hi netters,
This is probably a silly question,but I can't find the answer after
searching the R-help archives online. ok, I have a matrix. I know there is
a 10 somewhere in it. Now I want to
know the index of the element 10 in this matrix. That is, if X[i,j]=10, I
want to know
i and j. Is
hi netters,
i have a dataframe A with several columns(variables). the elements of
column M are character strings. so
A$M=c(ab,abc,bcd,ac,abcd,fg,.fl).
i wanna extract all the rows where A$M match some regular expression
pattern.
for a simple example, let the pattern be just ab, i wanna
hi netters,
i have a dataframe TEST like this:
Y1 Y2 Y3
X1 4 7 8
X2 6 2 Z
X3 8 0 1
i would like to change it to a numeric matrix, replacing Z with NA
Y1 Y2 Y3
X1 4 7 8
X2 6 2 NA
X3 8 0 1
i've tried the function data.matrix but it didn't work. is there any easy
way to
hi netters,
suppose i have a series of objects X1, X2, B1,C1... they all have
the same dimensions. i want to combine into one by using cbind:
y-cbind(X1,X2,B1,C1.)
but i don't want to type the names of these objects one by one. instead,
i've put their names into a vector:
something I should do that I didn't?
Thanks a lot!
Sincerely Yours: Zhihua Li
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
Hi netters,
Now I'm connecting from my local windows machine to a remote linux machine
and launch R out there using SSH. When I tried to create grahics, like
using plot or heatmap, I cannot see the output. Maybe a new R window
displaying the graphics has popped out in the remote machine? Or I
Hi netters,
I'm using the 64-bit R-2.5.0 on a x86-64 cpu, with an RAM of 2 GB. The
operating system is SUSE 10.
The system information is:
-uname -a
Linux someone 2.6.13-15.15-smp #1 SMP Mon Feb 26 14:11:33 UTC 2007 x86_64
x86_64 x86_64 GNU/Linux
I used heatmap to process a matrix of the
it wrong?
Thanks a lot!
From: jim holtman [EMAIL PROTECTED]
To: zhihua li [EMAIL PROTECTED]
CC: r-help@stat.math.ethz.ch
Subject: Re: [R] memory error with 64-bit R in linux
Date: Wed, 18 Jul 2007 17:50:31 -0500
Are you paging? That might explain the long run times. How much
space
are your
Hi netters,
I have a matrix X of the size (1000,100). The values are from -3 to +3.
When I tried
heatmap(X,
distfun=function(c),dist(c,method=bin),hclustfun=function(m),hclust(m,method=average))
I got the error message:
Error: evaluation nested too deeply: infinite recursion /
Sorry, that was a typo. Actually there wasn't a comma after 'function(m)'
in my expression.
So I'll try to increase the threshould to see if that works.
Thanks a lot!
From: jim holtman [EMAIL PROTECTED]
To: zhihua li [EMAIL PROTECTED]
Subject: Re: [R] Error: evaluation nested too deeply
Yes. After I increase the threshould to 1 it got through. Thanks a lot!
From: Uwe Ligges [EMAIL PROTECTED]
To: zhihua li [EMAIL PROTECTED]
CC: r-help@stat.math.ethz.ch
Subject: Re: [R] Error: evaluation nested too deeply when doing heatmap
with binary distfunction
Date: Thu, 19 Jul 2007
25 matches
Mail list logo