Re: [R] please help me a little

2018-02-09 Thread Jeff Newmiller
I don't use coxphf, but it is generally a bad idea to reference variables via multiple environments (e.g. global and the data= argument in this case) directly from within a formula. Just use FAM138A.chr wherever you have used test[,6] and it should work. -- Sent from my phone. Please excuse my

Re: [R] How to label a polygon window (spatstat package)

2018-02-09 Thread Mohammad Tanvir Ahamed via R-help
Thanks. when there is multiple polygon , it a problem . looking for something more . Regards. Tanvir Ahamed Stockholm, Sweden |  mashra...@yahoo.com On Saturday, February 10, 2018, 6:35:59 AM GMT+1, Michael Sumner wrote: Try text(0.5, 0.5, label = "?text") On Sat

Re: [R] How to label a polygon window (spatstat package)

2018-02-09 Thread Michael Sumner
Try text(0.5, 0.5, label = "?text") On Sat, 10 Feb 2018, 16:22 Mohammad Tanvir Ahamed via R-help, < r-help@r-project.org> wrote: > Hi, > I want to label a polygon (circle or polygon) inside. > As for example code > > library(spatstat) > x <- runif(20) > y <- runif(20) > X <- ppp(x, y, window=dis

[R] How to label a polygon window (spatstat package)

2018-02-09 Thread Mohammad Tanvir Ahamed via R-help
Hi,  I want to label a polygon (circle or polygon) inside. As for example code  library(spatstat) x <- runif(20) y <- runif(20) X <- ppp(x, y, window=disc(0.7)) plot(X) Now I want to label that circle inside . Can some one please help me ?  Thanks.  Regards. Tanvir Ahamed Stockholm,

[R] please help me a little

2018-02-09 Thread Ding, Yuan Chun
Hi R Users, I am very frustrated with the following code. Please do me a favor to run it. after reading into the test data set (I also pasted the data set below), the first line of code for "res_coxphf" did not work and generated the error code below. but the other three line worked well. the

[R] Covariates in fuzzy RDD with rddtools

2018-02-09 Thread Chiara Malavasi
Hello! I am having trouble including covariates in a fuzzy RDD model in R with rddtools. I run the following commands: library(rddtools) data.complete2 <- as.data.frame(cbind(GDPpc.rel, GR.rate, fitval.firstStage)) colnames(data.complete2) <- c("GDPpc.rel", "GR.rate", "FitTreat")

Re: [R] Optim function returning always initial value for parameter to be optimized

2018-02-09 Thread ProfJCNash
Did you check the gradient? I don't think so. It's zero, so of course you end up where you start. Try data.input= data.frame(state1 = (1:500), state2 = (201:700) ) err.th.scalar <- function(threshold, data){ state1 <- data$state1 state2 <- data$state2 op1l <- length(state1) op2l

[R] Optim function returning always initial value for parameter to be optimized

2018-02-09 Thread BARLAS Marios 247554
Hello, I'm trying to fminimize the following problem: You have a data frame with 2 columns. data.input= data.frame(state1 = (1:500), state2 = (201:700) ) with data that partially overlap in terms of values. I want to minimize the assessment error of each state by using this function: err.th.

[R] Convolutional neural networks (CNN) - build a model and After?

2018-02-09 Thread Karim Mezhoud
Hi, I am learning CNN using MXNet R package. I am following this great tutorial about olivetti_faces reconnaissance . In the end after building model and testing the final score was