[R] lasso and ridge regression

2017-10-30 Thread Gafar Matanmi Oyeyemi
Dear All The problem is about regularization methods in multiple regression when the independent variables are collinear. A modified regularization method with two tuning parameters l1 and l2 and their product l1*l2 (Lambda 1 and Lambda 2) such that l1 takes care of ridge property and l2 takes car

[R] Obtaining and extracting cells sample in cross-tabulation

2016-06-17 Thread Gafar Matanmi Oyeyemi
Hello everyone, I'm writing a function in R but was stalked. I have a data set that contains mixture of categorical and continuous variables. I want to use the categorical variables to cross-tabulate the data and extract the observations in the resulting cells that contain only continuous variables

[R] which function

2016-06-04 Thread Gafar Matanmi Oyeyemi
Dear, I need help on which.min and which.max. functions. Is there a function to fetch me the point that in vector that gives median value such like the commands for minimum and maximum values. Thanks. [[alternative HTML version deleted]] __ R-h

[R] Reading CSV file

2013-04-19 Thread Gafar Matanmi Oyeyemi
I am trying to read a csv file using the code; contol <- read.csv("RBS.csv") This is the error message I got; Error in file(file, "r") : unable to open connection In addition: Warning message: In file(file, "r") : cannot open file 'RBS.csv', reason 'No such file or directory' Where was the mistak