I am getting an error when trying to use the chi-squared function. I keep getting this error code with the function
wtd.chi.sq(x = gss$workstatus, y = gss$abpoor, weight = abortionincomework)
Error in wtd.chi.sq(x = gss$workstatus, y = gss$abpoor, weight = abortionincomework) :
unused arguments (x = gss$workstatus, y = gss$abpoor)