I am trying to use the least absolute deviation regression from my dataset which has one column of dependent variable and multiple columns of independent variables. I tried using the following syntax but get errors where the 'co' contains the dataset and the 12th column is my dependent variable:
but I get error saying:
argument "y" is missing, with no default
So I also tried this method:
But I still get error saying I need the arguments for x and y to be in matrix form.
May I get help on this?