search for: kohleth

Displaying 8 results from an estimated 8 matches for "kohleth".

Did you mean: kohler
2010 Sep 28
2
cochran Q test
Dear all, I am trying to look for a built in function that performs the cochran Q test. that is, cochranq.test(X) where X is a contingency table (maybe a matrix or data.frame). The output will naturally be the test statisitcs, p-value, etc. A quick search on Google gives me the cochran.test in the 'outlier' package, but I had a look at the description of the test and it doesn't look
2010 Dec 20
1
transposing panel data
...undia@equitybank.co.keSkype ID: twamaeYahoo ID: tabygathoni@yahoo.com An idea not coupled with action will never get any bigger than the brain cell it occupied. Arnold Glasgow ...... "Attempt something large enough that failure is guaranteed…unless God steps in!" --- On Mon, 12/20/10, Kohleth Chia <kohleth@gmail.com> wrote: From: Kohleth Chia <kohleth@gmail.com> Subject: [R] package "arules" - 'transpose' of the transactions To: r-help@r-project.org Date: Monday, December 20, 2010, 8:41 AM Suppose this is my list of transactions: set.seed(200) tran=ra...
2010 Dec 20
2
package "arules" - 'transpose' of the transactions
Suppose this is my list of transactions: set.seed(200) tran=random.transactions(100,3) inspect(tran) items transactionID 1 {item80} trans1 2 {item8, item20} trans2 3 {item28} trans3 I want to get the 'transpose' of the data, i.e. transactionID items 1 {trans2} item8 2 {trans2} item20 3 {trans3} item28 4 {trans1} item80 I
2010 Jan 12
1
coerce vector into array - change filling sequence
Dear all, When I coerce a vector into a multi dimensional array, I would like R to start filling the array along the last dimension, then the 2nd last etc. Let's jump straight into an example. x <- 1 : 24 y <- array(dim=c(2,2,6)) I would like to have: y[1,1,1] = 1 y[1,1,2] = 2 ... y[1,1,6] = 6 y[1,2,1] = 7 y[1,2,2] = 8 ... y[2,1,1] = 13 ... y[2,2,1] = 19 if I do y<- array(x,
2010 Nov 24
1
Getting user input without hitting enter
Hi, I am writing a function which requires user to enter a single character. Something like: hello<-function(){ input<-scan(n=1,what="a") if(input=="h")cat("Hello") # What goes after the 'if' is completely arbitrary, for simplicity sake I simply put a cat command here. } I want R to automatically finish scanning after the user has entered the 1st
2010 Nov 25
1
Replacing 1 plot in layout
Hi, layout(1:2) # split the screen into 2 regions plot(1:2) # plot in region 1 plot(1:2) # plot in region 2 par(mfg=c(1,1)) # Then I want to update the plot in region 1 plot(1.5,1.5) But the this last plot overlays with my 1st plot. Q: How do I replace my first plot with my last? #### NOTE ###### I know I can do this with split.screen and screen(n,TRUE) But then it actually clears the
2010 Dec 19
3
monthly median in a daily dataset
Hello, I have a multi-year dataset (see below) with date, a data value and a flag for the data value. I want to find the monthly median for each month in this dataset and then plot it. If anyone has suggestions they would be greatly apperciated. It should be noted that there are some dates with no values and they should be removed. Thanks Emily > print ( str(data$flow$daily) )
2010 Jan 28
0
lpSolve API - add Vs set
Hi, Using the package lpSolve API, I need to build a 2000*100000 constraint matrix. I wonder which method is faster: (a) model = make.lp(0,0) add.constraint(model, ...) or (b) model = make.lp(2000,100000) set.constraint(model,...) Thanks ------------ KC