Displaying 2 results from an estimated 2 matches for "selectedvar".
Did you mean:
selectedbar
2013 Jul 06
1
problem with BootCV for coxph in pec after feature selection with glmnet (lasso)
...ambda[max.dev.index]
# take beta for optimal lambda
optimal.beta <- glmnet.obj$beta[,max.dev.index]
# find non zero beta coef
nonzero.coef <- abs(optimal.beta)>0
selectedBeta <- optimal.beta[nonzero.coef]
# take only covariates for which beta is not zero
selectedVar <- predict_matrix[,nonzero.coef]
# create a dataframe for trainSet with time, status and selected variables
in binary representation for evaluation in pec
reformat_dataSet <- as.data.frame(cbind(surv_obj,selectedVar))
# create coxph object with pre-defined coefficients
glmne...
2002 Feb 11
0
read.table in TCL/TK interface
...nFile with
the R function read.table to select in userfriendly way data sets ?
(I'm newbie and take code-parts from t-test example and scripting example.)
(2) Is it possible to use a variableSelection widget
to select a special variable which i can use to replace in R commands
like:
rpart( selectedVar ~.,data) ?
(3) What occur the difference run tcl/tk code
in R-Winedt , i get the results only when i use paste !
$ source("D:/Statsoft/rw1041/code/TCL-TK.R")
******************************************************
The source for this demo can be found in the file:
D:/Statsoft/rw1041/...