Displaying 20 results from an estimated 400 matches similar to: "parameterization of glm nested design"
2013 Jun 18
1
hist function in a for loop
Dear all,
I need to create a for-loop in which I can compute multiple histograms
My code is the following :
#singlefile includes huge csv file
#I want to specify the binsize
#I would like to compute in the for -loop the histograms
numfiles <- length(singlefile)
for (i in 1 :51)
{
binsize <- -20 :20/2
hist(singlefile(singlefile$GVC[singlefile$new_id==i]], break=seq(),
2008 Jul 03
1
randomForest.error: length of response must be the same as predictors
My data looks like:
A,B,C,D,Class
1,2,0,2,cl1
1,5,1,9,cl1
3,2,1,2,cl2
7,2,1,2,cl2
2,2,1,2,cl2
1,2,1,5,cl2
0,2,1,2,cl2
4,2,1,2,cl2
3,5,1,2,cl2
3,2,12,3,cl2
3,2,4,2,cl2
**The steps followed are:
trainfile <- read.csv("TrainFile",head=TRUE)
datatrain <- subset(trainfile,select=c(-Class))
classtrain <- (subset(trainfile,select=Class))
rf <- randomForest(datatrain, classtrain)
2011 Sep 14
1
S4 method dispatch
List,
In order to get rid of some old, unreadable S3 code in package sp, I'm
trying to rewrite things using S4 methods. Somewhere I fail, and I
cannot sort out why. In order to isolate the problem, I created two
functions, doNothing<- and dosth, and both should do nothing. The issue
is that in most cases they do nothing, but in some cases dosth(obj)
changes the class of obj and breaks with
2011 Jun 21
1
plot error bars on skyline plot
Hi,
I have generated a skyline plot of a tree in newick format using "ape".
How can I plot the error bars for this graph?
I only have the the tree data.
un<-"((((8.1:0, 20.1:0):0, 6.1:3):123, (((((35.1:0, (22.1:0, (43.1:1,
29.1:0):0):0):4, 25.1:6):0, ((42.1:0, 21.1:0):3, (39.1:0, 2.1:0):3):1):8,
(3.1:0, 7.1:0):8):48, (((((15.1:0, 14.1:0):0, 11.1:0):0, 37.1:0):0,
2008 Jul 04
2
experinental revision of the 'snow' package
A new version of the 'snow' package for parallel computing in R is
available at
http://www.stat.uiowa.edu/~luke/R/cluster/snow_0.3-3.tar.gz
This substantially revises the way in which worker processes are
started to allow snow to be used on Windows and Mac/Windows/Linux
combinations. I have successfully used the SOCK version on a
standalone Windows machine and combinations of
2007 Oct 03
1
inverse of matrix made by low.tri function
Hi all,
I am using R trying to get a inverse matrix of (X^T)X , but I keep getting
the error
message like: no b argument and no default value for sprintf(gettext(fmt,
domain = domain), ...) .
--------------------------------------------------------------------------------------------
# my code
X<-Matrix(rep(1,500),100,5)
X[lower.tri(X)]<-1-10^-7
XtX<- t(X)%*% X
XtXu<-lu(XtX)
2018 Jul 05
5
two 2-node clusters or one 4-node cluster?
Hello,
I'm planning migration of current two clusters based on CentOS 6.x with
Cman/Rgmanager going to CentOS 7.x and Corosync/Pacemaker.
As the clusters and their services are on the same subnet, and there no
particular security concerns differentiating them, I'm also evaluating the
option to transform the two clusters into a unique 4-node one during the
upgrade.
Currently I'm
2005 Apr 29
0
recording packet sent time
Hello
I am writing a qdisc scheduler (called fb in the diagram) that does certain
packet delaying and other stuff. (for egress traffic)
root (htb/tbf)
|
---------------
cl1 cl2 |
tbf
--------
| |
cl3 cl4
| |
*fb* fifo
Now I need to
2009 May 12
2
add error check for ocfs2_read_locked_inode() call
After upgrading from 2.6.28.10 to 2.6.29.3 I've saw following new errors
in kernel log:
May 12 14:46:41 falcon-cl5
May 12 14:46:41 falcon-cl5 (6757,7):ocfs2_read_locked_inode:466 ERROR:
status = -22
Only one node is mounted volumes in cluster:
/dev/sde on /home/apache/users/D1 type ocfs2
(rw,_netdev,noatime,heartbeat=local)
/dev/sdd on /home/apache/users/D2 type ocfs2
2012 Jan 04
1
Is there a way to update a method on an existing Reference Class object?
Hi
Being able to do object oriented programming in R is really good. I
now started using the Reference Classes and really like it.
Though, I have one problem: I cannot find a way to update a method on
an existing object.
The flexibility that scripting gives (really needed for interactive
data analysis) is lost if everything have to be recalculated all the
time.
For example I would normally
2003 Apr 25
1
plot clusters
Hi,
I have a dataset which has more than two clusters (say 3 clusters).
I used kmeans to cluster the dataset.
I am wondering how I can plot the clustering result on a two-dimensional
figure????
The example in the kmeans help file is as follows:
x <- rbind(matrix(rnorm(100, sd = 0.3), ncol = 2),
matrix(rnorm(100, mean = 1, sd = 0.3), ncol = 2))
cl <- kmeans(x, 2, 20)
2005 Jul 06
1
Error message NA/NaN/Inf in foreign function call (arg 6) when using knn()
I am trying to use knn to do a nearest neighbor classification. I tried using my dataset and got an error message so I used a simple example to try and understand what I was doing wrong and got the same message. Here is what I typed into R:
try
[,1] [,2] [,3] [,4]
r "A" "A" "T" "G"
r "A" "A" "T" "G"
f
2020 Jan 26
2
[RFC] Replacing inalloca with llvm.call.setup and preallocated
Hello all,
A few years ago, I added the inalloca feature to LLVM IR so that Clang
could be C++ ABI compatible with MSVC on 32-bit x86. The feature works, but
there is room for improvement. I recently took the time to write up a
design using token values that will hopefully be better named and easier to
work with and around.
For the technical details of the proposal, I've written up the RFC
2010 Jan 26
2
No space left on device in one node
Hi!
We operate a 2-node cluster running OCFS2 on top of DRBD. It shows about 4.3 GB free space on the OCFS2 filesystem using df on both nodes, but one node can't even write 10 MB:
df (ouput identical on both the nodes)
$ df -k /cluster
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/drbd0 83883484 80071096 3812388 96% /cluster
$ df -i /cluster
2018 Jul 07
1
two 2-node clusters or one 4-node cluster?
On Thu, Jul 5, 2018 at 7:10 PM, Digimer <lists at alteeve.ca> wrote:
First of all thanks for all your answers, all useful in a way or another. I
have yet to dig sufficiently deep in Warren considerations, but I will do
it, I promise! Very interesting arguments
The concerns of Alexander are true in an ideal world, but when your role is
to be an IT Consultant and you are not responsible for
2008 Jul 02
1
randomForest training error
While trying to train randomForest with my dataset, I am ending up with the
following error
Error in randomForest.default(datatrain, classtrain) :
length of response must be the same as predictors
My data looks like:
A,B,C,D,Class
1,2,1,2,cl1
1,2,1,2,cl1
3,2,1,2,cl2
3,2,1,2,cl2
3,2,1,2,cl2
3,2,1,2,cl2
3,2,1,2,cl2
3,2,1,2,cl2
3,2,1,2,cl2
3,2,12,3,cl2
3,2,1,2,cl2
Actual dataset has around 4000
2017 Dec 28
2
Debian 9.3 nut-client.service reports itself as nut-monitor.service
I reported a minor bug in nut 2.7.4 on Debian stretch and got the number 885592
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=885592
The systemd service unit /lib/systemd/system/nut-client.service reports itself
as nut-monitor.service on command systemctl status nut-client.service.
It would be clearer to users if the service unit file was also called
2004 May 05
1
Segfault from knn.cv in class package (PR#6856)
The function knn.cv in the class package doesn't have error checking to
ensure that the length of the classlabel argument is equal to the number
of rows in the test set. If the classlabel is short, the result is often
a segfault.
> library(class)
> dat <- matrix(rnorm(1000), nrow=10)
> cl <- c(rep(1,5), rep(2,5))
> cl2 <- c(rep(1,5), rep(2,4))
> knn.cv(dat, cl)
[1] 2
2017 Aug 21
2
Brick count limit in a volume
Hi,
Gluster version is 3.10.5. I am trying to create a 5500 brick volume,
but getting an error stating that 4444 bricks is the limit. Is this a
known limit? Can I change this with an option?
Thanks,
Serkan
2017 Aug 23
1
Brick count limit in a volume
This is the command line output:
Total brick list is larger than a request. Can take (brick_count 4444)
Usage: volume create <NEW-VOLNAME> [stripe <COUNT>] [replica <COUNT>] ....
I am testing if a big single volume will work for us. Now I am
continuing testing with three volumes each 13PB...