Posts by iara • 367 points
10 posts
-
0
votes0
answers49
viewsQ: R - find a specific value in the matrix
I’m having trouble finding a specific value in a matrix. The problem is that my matrix is too big to put here [360,181], so I’ll have to solve with an example. x<- matrix(1:50, ncol=5) I need…
-
3
votes1
answer30
viewsQ: R splinefun with NA
Has anyone used splinefun with a set of data with NA? x<-c(0.7948801, 1.3248001, 1.5897601, 8.7436794, 9.5385607, 12.4531202, 13.2480008, 14.0428786, 23.0515214, 23.5814400, 28.3507206,…
-
5
votes2
answers104
viewsQ: R straight location of x in y
I have this doubt, but honestly I do not know if the solution really exists in R. I have a graph x/y, and I want to draw two lines, (1) from the x-axis to the die and another (2) from the y-axis to…
-
0
votes0
answers56
viewsQ: R coxph() In fitter(....) Loglik converged before variable 1 ; beta may be Infinite
I’m using the Cox regression model, for a very large data series (I let it run overnight). And when it’s over, this message comes Mensagens de aviso perdidas: In fitter(X, Y, strats, offset, init,…
-
0
votes1
answer115
viewsQ: R write.table with rbind
Hello, I have the following variables: year, area and a series of data. At each loop of area and year, I make an average of my data. for(area in 1:10){ for(ano in 1:20){ calculo_coeficiente<-…
-
1
votes2
answers124
viewsQ: R - problems converting txt to read in R
I have a '.xls' that I passed to '.txt' for the R reading, no problem. The point is that by opening '.txt' in R with read.table, it shows me as a single table, in a single R position. > x V1 1 X…
-
5
votes1
answer410
viewsQ: R - How to calculate the density from the accumulated curve based on the Cox regression model
I calculated the accumulated probability (cdf) of my data, based on the probability of exceedance (Edf), using the Cox regression model. So far ok, no problem at all. However, does anyone know if…
-
5
votes2
answers130
viewsQ: R - cut digits
Would someone like to tell me how I can cut digits in the R? Example: ano <- c(1999,2000,2001,2002,2003) And only to return: #[1] 99 00 01 02 03…
-
3
votes1
answer205
viewsQ: Cox regression model in R
Hello, I’m trying to develop a Cox regression on R, but I can only get a straight line with practically continuous values. ano<-…
-
2
votes2
answers632
viewsQ: Ks.test and p-value < 2.2e-16
I am trying to compare two distributions, but when I apply Ks.test for both, I only get the value of’D' and p-value coincidentally gives the same value for both, '< 2.2e-16'. I had the idea of…