I need to add a column to my matrix X. It needs to be the first column of X and all values should be "1". I tried with the cbind command, but somehow I couldn't get it done. If someone could help me that would be great.
Code for X (from a dataset called "wagedata".
X <- as.matrix(wagedata[3:4])
The dataset is structured this way - For X i only ned educ and exper:
wage IQ educ exper tenure age married black south
769 93 12 11 2 31 1 0 0
808 119 18 11 16 37 1 0 0