search for: 3levels

Displaying 3 results from an estimated 3 matches for "3levels".

Did you mean: levels
2011 Dec 13
8
How to compute 95%CI for OR from logistic regression?
Hi all: My data has 3 variables: age(3levels : <30y=1 30-50y=2, >50y=3) gender(Male=0, Female=1) CD4 cell count(raw lab measurement) y(1:death 0:alive) I perform logistic regression to find out the factors that influence y. result<-glm(y ~ factor(age) + factor(gender) + CD4,family = binomial) >From the result,I can get OR...
2010 Jun 09
1
counting across leves of factors
I have dataframe with 17factors variables (for example every factor have 3levels) I have maybe 5000 observation. And i need to do table where is in every raw 1 of possible combination of this factors and the numbur how many time is this combination in my dataset. I wrote one code, but this is very slow and dumb. it looks like this: i<-0 for(i1 in levels(hivdat$pohl)){ a...
2017 Sep 02
0
problem in testing data with e1071 package (SVM Multiclass)
...<-subset(train,select=-V2) >y <-V2 >model <-svm(V2 ~.,data =train,probability=TRUE) >summary(model) Call:svm(formula =V2 ~.,data =train,probability =TRUE)Parameters:SVM-Type:C-classification SVM-Kernel:radial cost:1gamma:0.08333333Numberof SupportVectors:12(444)Numberof Classes:3Levels:maybe noyes >pred <-predict(model,x) >system.time(pred <-predict(model,x)) user system elapsed 000 >table(pred,y)y | |pred maybe noyes maybe 400no040yes 004>pred 123456789101112yes yes yes yes nonononomaybe maybe maybe maybe Levels:maybe noyes| || I think it's ok until...