Moral Suspension Zones: Informal Institutions and Ethical Risk in Alcohol-Oriented Work Cultures
收藏资源简介:
Here’s a README.md file you can include in your Zenodo record to help users understand how to use your uploaded files in Google Colab: README: Moral Suspension Zones: Informal Institutions and Ethical Risk in Alcohol-Oriented Work Cultures This repository contains the dataset and scripts used in the analysis of workplace alcohol norms and ethical risk perceptions. It is designed for use in Google Colab to ensure accessibility for researchers without local Python environments. 📂 Files Included Drink.ipynb — Main analysis notebook (Google Colab–ready). drink.py — Python script containing helper functions for data cleaning and analysis. GSS.xlsx — Source data file (subset of the General Social Survey, cleaned and pre-formatted). ▶️ Getting Started in Google Colab 1. Open Google Colab Visit: https://colab.research.google.com 2. Upload Files Click the folder icon on the left sidebar → click the Upload icon → upload all three files: Drink.ipynb drink.py GSS.xlsx 3. Mount Working Directory Ensure you are in the right working directory in Colab. Uploaded files will appear in /content. You can list the files to confirm: !ls 4. Run Python Script from Notebook From within the notebook, you can run the Python script using a Colab-friendly bash command: !python drink.py This executes any preprocessing or functions stored in drink.py. 5. Run Notebook Now open Drink.ipynb, step through the cells, and perform your analysis. 💡 Notes The dependent variable analyzed is drinkday1_clean, a numeric ordinal variable coded as follows:0 = Never, 1 = Monthly or less, 2 = Several times a month, 3 = Several times a week, 4 = Daily. The script is fully executable in a free Google Colab environment — no installation is required beyond the standard libraries (e.g., pandas, statsmodels). Designed for reproducibility and teaching purposes in applied social science research. 📄 License This dataset and code are released under the Creative Commons Attribution 4.0 International License (CC BY 4.0).You are free to use, share, and adapt the materials with appropriate credit. Let me know if you’d like a DOI placeholder added before publishing.



