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 = row.name
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 wit
# 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
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
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 <- 1
В 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
> | ^~~~
6 matches
Mail list logo