I was trying to fit a linear regression in Julia. I have a data frame with 10 columns. The first 9 columns are the predictors I call it X and the last column is the response variable I call it Y
I typed linreg(X, Y)
But I get an error message saying
linreg has no method matching DataFrame and DataArray Float.
I was wondering how I could fix the issue. I was thinking of converting X to a data Array
I tried convert(X, Array)
But that threw an error as well:
'Convert has no method matching convert'
Does anyone have any suggestions