[R] coxme adequacy check

2015-10-28 Thread Cacique Samurai
Hello all! I´m fitting a mixed effects cox model with coxme function of coxme package. I want to konw what is the best way to check the model adequacy, once that function cox.zph does not work for coxme objects. Thanks in advanced, Raoni -- Raoni Rosa Rodrigues Research Associate of Fish Trans

Re: [R] Neuralnet package in R gives wrong output

2015-10-28 Thread John Kane
No attachements. R-help is very picky about attachements. I'd suggest supplying the data using dput() . See ?dput for more information It is probably best to just copy and paste the code into your email. If this is no practical try sending a plain text file with a .txt extension John Kane King

Re: [R] Failed to read UTF-16LE file on Windows

2015-10-28 Thread Wush Wu
Dear all, Here is an answer I found. ``` library(stringi) src <- readBin("orglist-100.CSV", "raw", file.info("orglist-100.CSV")$size) src2 <- stri_encode(src, "UTF-16LE", "UTF-8") con <- textConnection(src2) answer <- read.table(con, header = TRUE, sep = ",") ``` Hope it will help someone in the

Re: [R] coxme adequacy check

2015-10-28 Thread Therneau, Terry M., Ph.D.
On 10/28/2015 06:00 AM, r-help-requ...@r-project.org wrote: Hello all! I?m fitting a mixed effects cox model with coxme function of coxme package. I want to konw what is the best way to check the model adequacy, once that function cox.zph that does not work for coxme objects. Thanks in advanc

Re: [R] Extract entries from matrix

2015-10-28 Thread Jorge I Velez
Dear all, I thought I would better send an image illustrating that the problem is (hope the file gets through). In the picture, the matrix "m" is given by ## input m <- structure(c(0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0

Re: [R] Extract entries from matrix

2015-10-28 Thread Boris Steipe
Your code does not produce the matrix in your image. The first three rows contain all-zeros and the last row is missing. The following line fixes that: m <- rbind(m[-(1:3), ], 1:5) Given that matrix, the following code produces the output you have illustrated. It's so trivial however that I suspe

[R] rbind - names in dataframe. Beginner Question

2015-10-28 Thread Dagmar Cimiotti
Hello, It must be very easy. I have data like this: myframe <- data.frame (ID=c("Ernie", "Ernie", "Ernie", "Bert", "Bert","Bert", "Duck"), Hunger=c(1,1,1,2,2,1,3) ) myframe bighunger <- subset (myframe, myframe$Hunger>=2 &myframe$Hunger <3 ) bighunger verybighunger <- subset(myframe,myframe$Hun

Re: [R] rbind - names in dataframe. Beginner Question

2015-10-28 Thread Sarah Goslee
If I'm reading this correctly, you want to add a column to your dataframe with a name corresponding to the value in the Hunger column. myframe <- data.frame (ID=c("Ernie", "Ernie", "Ernie", "Bert", "Bert","Bert", "Duck"), Hunger=c(1,1,1,2,2,1,3) ) myframe$Hungertype <- c("none", "bighunger", "ver

[R] problem with formula argument to randomForest

2015-10-28 Thread Ed Komp
The randomForest function generates an error whenever I supply it with a formula using the function, I() to inhibit interpretation. When I do so, I always get an error like this one: Error in unique(c("AsIs", oldClass(x))) : object 'Age' not found Is this because of: 1. a restriction for t

Re: [R] Distribution hist

2015-10-28 Thread Adams, Jean
Something like this might help you get started. Simulation <- c(10403, NA, NA, NA, NA, 11178, NA, NA, NA, NA, 11521, NA, NA, NA, NA, 11385, NA, NA, NA, NA, 10102, NA, NA, NA, NA, 10544.013, 10339.925, 9912.695, 9928.198, 9932.112, 9008.05, 9437.174, 10406.784, 10832.123, 11095.868, 10955.0

[R] Lattice Package in R: Is it possible to develop an interactive “scatterplot/network”?

2015-10-28 Thread Luck Buttered
I am developing an interactive scatterplot so that when the user rolls over a data point, a label is displayed. However, I would also like to add edges between certain data points. I am successful at developing the interactive scatterplot using several libraries, including grid, gridSVG, lattice,