python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Ordinal Encoder with Specific order include NAN
Let say that I have this example dataset
test = {'Education': ['High School', 'Uneducated', 'Graduate', 'College', np.nan, 'High School'],
'Gender': ['M', 'F', 'M', 'F', 'M', 'F']}
and the ou...
Napier
Votes: 0
Answers: 2
Calculate marginal effects for ordinal::clmm
I have some problems with calculating the AME (…average marginal effects…) from an ordinal model (ordinal::clmm()) with random effects (in my case a four level year factor). The functions margins::mar...

Eco007
Votes: 0
Answers: 1
Check if any combination of binary variables is correlated/has impact on an ordinal dependent variable
I am working on a case to finish my (not so advanced) data scientist course and I have already been helped a lot by topics here, thanks!
Unfortunately now I am stuck again and cannot find an existing ...
Magda K
Votes: 0
Answers: 0
Encoding categorical variables such that both the presence as well as the position of characters matter in literal strings
Let's assume we have a dataframe whose last column is made up of literal strings such as the following:
df = pd.DataFrame(
{
"col1": ["C", "A", "...
Ash
Votes: 0
Answers: 1