Logo Lanfrica
  • Accueil
  • Atlas
  • Analyses
  • Documentation
  • Sign in

© 2026 Lanfrica. Tous droits réservés. Tous les droits d'auteur des ressources affichées sur le site Web Lanfrica appartiennent aux détenteurs de droits d'auteur d'origine, sauf indication contraire explicite.

raquelbaeta/r-public-opinion-on-political-parties-and-military-governments-script

Domaine:

socioeconomic
Créateur:
raq
Hôte:
This script performs an exploratory data analysis on public opinion regarding military governments in Burkina Faso and Botswana. The analysis is based on survey data, and it examines the relationship between respondents' opinions and their gender. The script covers data cleaning, recoding, visualization, bivariate analysis, and linear regression. ### ## Examining Public Opinion on Military Governments in Burkina Faso and Botswana ## ### Overview This script performs an exploratory data analysis on public opinion regarding military governments in Burkina Faso and Botswana. The analysis is based on survey data, and it examines the relationship between respondents' opinions and their gender. The script covers data cleaning, recoding, visualisation, bivariate analysis, and linear regression. ### Requirements To run this script, you'll need the following: R packages: haven, dplyr, tidyr, ggplot2, mosaic, readr, knitr, kableExtra ### Data Sets The script uses two data sets: bfo_r7_data_eng.sav: Burkina Faso survey data (SPSS format) bot_r7_data_eng.sav: Botswana survey data (SPSS format) Both data sets should be saved in the same directory as the script. ### Script Structure The script is divided into several sections: 1. Data Loading and Cleaning: Loads the data sets, converts them to tibbles, and cleans the column names. 2. Variable Recoding: Recodes the response options for the main question and the respondents' gender. 3. Data Visualization: Creates bar plots and mosaic plots to visualize the distribution of opinions by gender in both countries. 4. Bivariate Analysis: Performs chi-square tests and proportion tests to examine the relationship between opinions and gender in both countries. 5. Linear Regression: Estimates linear regression models to predict opinions based on gender in both countries. 6. Comparative Analysis: Compares the results of the analyses for Burkina Faso and Botswana. 7. Usage ### Install the required packages: install.packages(c("haven", "dplyr", "tidyr", "ggplot2", "mosaic", "readr", "knitr", "kableExtra")) ### Load the required packages: library(c(haven, dplyr, tidyr, ggplot2, mosaic, readr, knitr, kableExtra)) The script generates several tables and plots to visualise and analyse the data. The main findings are presented in the "Comparative Analysis" section, which summ …

Visit

github.com

Tags

bivariate-analysischi-square-testscontingency-tablesdata-cleaning-and-recodingdata-visualizationlinear-regressionproportion-tests

Similaires

INFLUENCE OF FRAMING OF THE HASHTAG ON PUBLIC OPINION FORMATION ON SOCIO-POLITICAL ISSUES IN KENYAPublic Opinion and Opinion Polls in CameroonConflict and Coercion within African Political PartiesTHE PERCEIVED IMPACT OF POLITICAL CHANGE ON THE PRACTICE OF PUBLIC RELATIONS IN GOVERNMENTS COMMUNICATION OF ETHIOPIAActivism of Political Parties in Africa<p>R-script manual.</p>

INFLUENCE OF FRAMING OF THE HASHTAG ON PUBLIC OPINION FORMATION ON SOCIO-POLITICAL ISSUES IN KENYA

Purpose: The purpose of the study was to establish the influence of framing of the hashtag on public

Public Opinion and Opinion Polls in Cameroon

What is currently termed Cameroonian “public opinion” is in fact the final stage of a long historica

Conflict and Coercion within African Political Parties

Since the return of multiparty politics across Sub-Saharan Africa in the 1990s, conflict and violenc

THE PERCEIVED IMPACT OF POLITICAL CHANGE ON THE PRACTICE OF PUBLIC RELATIONS IN GOVERNMENTS COMMUNICATION OF ETHIOPIA

ABSTRACT
The study investigates how shifts in the political landscape influence the practice of

Activism of Political Parties in Africa

Since the early 1990s, African states have been democratizing. Political parties now dominate the pu

<p>R-script manual.</p>

Background

The presence of multiple different pathogen variants within the same infect