Re: [R] Install OpenCL

2022-06-14 Thread Ivan Krylov
В Tue, 14 Jun 2022 10:58:59 +0200 Quirin Stier пишет: > Sys.env(OCL="C:/Program Files/NVIDIA GPU Computing > Toolkit/CUDA/v11.7/include/CL") > In file included from buffer.c:2: > ocl.h:7:10: fatal error: CL/opencl.h: No such file or directory >     7 | #include >   | 

Re: [R] Create a categorical variable using the deciles of data

2022-06-14 Thread Ebert,Timothy Aaron
Hana, the "right" answer depends on exactly what you need. Here are three correct solutions. They use the same basic strategy to give different results. There are also other approaches in R to get the same outcome. You could use data_catigocal[i,j] and some for loops. size1 <-5 ngroup <-

Re: [R] Install OpenCL

2022-06-14 Thread Ivan Krylov
On Tue, 14 Jun 2022 16:14:09 +0200 Quirin Stier wrote: > Sys.setenv(OCL="C:/Program Files/NVIDIA GPU Computing > Toolkit/CUDA/v11.7") > > is working Okay, sorry for the misleading follow-up message. I see now that the configure.win script performs appropriate quoting by itself, with no need to

Re: [R] Extracting only some coefficients for the logistic regression model and its plot

2022-06-14 Thread Rui Barradas
Hello, To extract all but the first 2 rows, use a negative index on the rows. I will also coerce to data.frame and add a id column, it will be needed to plot the confidence intervals. ORCI <- exp(cbind(OR = coef(model ), confint(model )))[-(1:2), ] ORCI <- cbind.data.frame(ORCI, id =

[R] How do I "teach" R that columns 1, 2, and 3 are the Year-Month-Day

2022-06-14 Thread Gregory Coats via R-help
# Column 1 is the Year # Column 2 is the Month # Column 3 is the Day # Column 4 is the Fuel Fuel <- c(50.45, 61.48, 59.07, 55.40, 30.63, 41.35, 32.81, 49.86, 62.99, 89.37) plot (Fuel) 2021 7 25 50.45 2021 8 27 61.48 2021 9 26 59.07 2021 11 4 55.40 2021 11 22 30.63 2021 11 26

[R] Extracting only some coefficients for the logistic regression model and its plot

2022-06-14 Thread anteneh asmare
sample_data = read.table("http://freakonometrics.free.fr/db.txt",header=TRUE,sep=";;) head(sample_data) model = glm(Y~0+X1+X2+X3,family=binomial,data=sample_data) summary(model) exp(coef(model )) exp(cbind(OR = coef(model ), confint(model ))) I have the aove sample data on logistic regression

[R-es] Github y software libre

2022-06-14 Thread Proyecto R-UCA
Buenas, Algunos de nosotros hemos tenido la oportunidad de encontrarnos en persona recientemente en Granada. Me consta que muchos de nosotros somos defensores del software libre. Todos los presentes parecían usar Github, al parecer yo era la única excepción y nadie dijo lo contrario.