CRAN Package Check Results for Package RCPA4

Last updated on 2026-12-03 19:53:13 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.0.0 21.59 177.20 198.79 OK
r-devel-linux-x86_64-debian-gcc 1.0.0 17.00 122.79 139.79 OK
r-devel-linux-x86_64-fedora-clang 1.0.0 61.71 ERROR
r-devel-linux-x86_64-fedora-gcc 1.0.0 58.91 ERROR
r-devel-windows-x86_64 1.0.0 27.00 334.00 361.00 OK
r-patched-linux-x86_64 1.0.0 27.19 164.10 191.29 OK
r-release-linux-x86_64 1.0.0 21.60 166.81 188.41 OK
r-release-macos-arm64 1.0.0 6.00 189.00 195.00 OK
r-release-macos-x86_64 1.0.0 16.00 335.00 351.00 OK
r-release-windows-x86_64 1.0.0 26.00 336.00 362.00 OK
r-oldrel-macos-arm64 1.0.0 7.00 197.00 204.00 OK
r-oldrel-macos-x86_64 1.0.0 16.00 344.00 360.00 OK
r-oldrel-windows-x86_64 1.0.0 37.00 391.00 428.00 OK

Check Details

Version: 1.0.0
Check: tests
Result: ERROR Running ‘testthat.R’ [4s/128s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(RCPA4) > > test_check("RCPA4") ================================================================================ Descriptive Statistics ================================================================================ Table: Descriptive Statistics for character_scores character_scores ---------------- ----------------- Observed values 3 Missing values 0 Unique values 2 Class factor Mode 10.000 ================================================================================ Descriptive Statistics ================================================================================ Table: Descriptive Statistics for factor_scores factor_scores ---------------- -------------- Observed values 3 Missing values 0 Unique values 2 Class factor Mode 10.000 Saving _problems/test-getC-41.R Saving _problems/test-getC-42.R Saving _problems/test-getC-51.R ================================================================================ Importing Data into R Session ================================================================================ File selected: file1243296cda5e0e.rda File type: rda debate package:RCPA4 R Documentation _<08>D_<08>e_<08>b_<08>a_<08>t_<08>e _<08>E_<08>x_<08>p_<08>e_<08>r_<08>i_<08>m_<08>e_<08>n_<08>t _<08>d_<08>a_<08>t_<08>a_<08>s_<08>e_<08>t _<08>f_<08>o_<08>r _<08>R _<08>C_<08>o_<08>m_<08>p_<08>a_<08>n_<08>i_<08>o_<08>n _<08>t_<08>o _<08>P_<08>o_<08>l_<08>i_<08>t_<08>i_<08>c_<08>a_<08>l _<08>A_<08>n_<08>a_<08>l_<08>y_<08>s_<08>i_<08>s, _<08>F_<08>o_<08>u_<08>r_<08>t_<08>h _<08>E_<08>d_<08>i_<08>t_<08>i_<08>o_<08>n _<08>D_<08>e_<08>s_<08>c_<08>r_<08>i_<08>p_<08>t_<08>i_<08>o_<08>n: A dataset with variables about students who participated in an experiment. This dataset is used to demonstrate application of R to political analysis. See book Appendix for variable names and descriptions. _<08>F_<08>o_<08>r_<08>m_<08>a_<08>t: A data frame with 171 rows and 14 variables. obs Unique identification number for each subject assignment Name of condition subject was assigned to tv Did subject watch debate on TV? debinfo Number of correct answers on five-question quiz about the debate catholic Is subject Catholic? issues Which candidate do you agree with on policy issues? integrity Which candidate has more integrity? leadership Which candidate is the more effective leader? empathy Which candidate has more empathy? sophdum Is respondent a sophomore? won Which candidate won the debate? pid Self-reported partisan identification ideology Self-reported political ideology gender Subject's gender _<08>S_<08>o_<08>u_<08>r_<08>c_<08>e: Jamie Druckman. See Appendix of printed textbook for further information. anes package:RCPA4 R Documentation _<08>A_<08>N_<08>E_<08>S _<08>2_<08>0_<08>2_<08>4 _<08>d_<08>a_<08>t_<08>a_<08>s_<08>e_<08>t _<08>f_<08>o_<08>r _<08>R _<08>C_<08>o_<08>m_<08>p_<08>a_<08>n_<08>i_<08>o_<08>n _<08>t_<08>o _<08>P_<08>o_<08>l_<08>i_<08>t_<08>i_<08>c_<08>a_<08>l _<08>A_<08>n_<08>a_<08>l_<08>y_<08>s_<08>i_<08>s, _<08>F_<08>o_<08>u_<08>r_<08>t_<08>h _<08>E_<08>d_<08>i_<08>t_<08>i_<08>o_<08>n _<08>D_<08>e_<08>s_<08>c_<08>r_<08>i_<08>p_<08>t_<08>i_<08>o_<08>n: A student-friendly subset of the 2024 American National Election Study Time Series. Variables were selected and renamed for use in RCPA4 examples. See book Appendix for variable names and descriptions. _<08>F_<08>o_<08>r_<08>m_<08>a_<08>t: A data frame with 5521 rows and 517 variables. abort_std_abort_self Abortion: self-placement abortion_scale_self Position on abortion: self-placement addrss_years_lived Years respondent lived at address appr_biden_drop Approval of Biden dropping from presidential race appr_biden_out Approval of Joe Biden dropping out of presidential race appr_cllgs_unvrsts Approval of how colleges and universities are run appr_cong_hndl_its Approval of Congress handling its job appr_dem_new_cand Approval of Democratic party choosing new candidate appr_dvrsty_eqty_dei Approval of Diversity, Equity, and Inclusion (DEI) appr_house_incumbent Approval of House incumbent appr_pres_handle_job Approval of president handling job appr_pres_hndl_abort Approval of president handling abortion policy appr_pres_hndl_crime Approval of president handling crime appr_pres_hndl_econ Approval of president handling economy appr_pres_hndl_frgn Approval of president handling foreign relations appr_pres_hndl_immig Approve or dissaprove president handling immigration appr_pres_immunity Approval of Supreme Court decision president immune appr_prtsts_war_gaza Approval of protests against war in Gaza appr_sup_ct_hndl_its Approval of Supreme Court handling its job appr_trans_ppl_use Approval of transgender people use bathroom that matches gender identity appr_vice_pres_hndl Approval of vice president handling job attn_sxl_hrssmnt_as Attention to sexual harassment as gone too far/not far enough bdgt_tax_favor_opps Favor or oppose tax on millionaires bdgt_tax_imp_rdcng Importance of reducing deficit biz_leaders_decide Whether business leaders should make political decisions black_atttd_agree Agree/disagree: past slavery & discrimination make it difficult for blacks black_atttd_agree_2 Agree/disagree: blacks should work their way up without special favors black_atttd_agree_if Agree/disagree: if blacks tried harder they'd be as well off as whites black_atttd_agree_t Agree/disagree: blacks have gotten less than they deserve bttr_worse_if_man Better/worse if man works and woman takes care of home camp_fnnc_cong_chng Congress change votes because of donation to campaign camp_fnnc_cong_pas_2 Congress pass laws that benefit contributor individuals camp_fnnc_cong_pass Congress pass laws that benefit contributor organization camp_fnnc_lmts_camp Limits on campaign spending camp_interest Interest in following campaigns cares_wins_pres How much respondent cares who wins the presidency case_id 2024 Time Series Case ID cell_phone Does respondent personally have a cell phone child_brght_illglly Should children brought illegally be sent back or allowed to stay child_household How many children in HH age 0-17 child_rrng_child_i_2 Which child trait more important: curiosity or good manners child_rrng_child_i_3 Which child trait more important: obedience or self-reliance child_rrng_child_i_4 Which child trait more important: considerate or well-behaved child_rrng_child_imp Which child trait more important: independence or respect choice_satisfaction Satisfaction with the range of choices in elections cncrn_govt_undrmn Concern that government might undermine the news media cnsdr_thmslf_fmnst Does respondent consider themself a feminist or anti-feminist cntrbt_any_other respondent contribute to any other group that supported or opposed candidates cntry_bttr_off_if_we Country would be better off if we just stayed home cntry_feel_irrttd How irritated respondent feels about how things are going in the country cntry_right_track Are things in the country on right track conf_2020_winner How confident is respondent about that (winner of 2020 election) conf_2024_winner How confident is respondent about that (winner of 2024 election) conf_hunter_biden How confident is respondent about that (Hunter Biden) conf_jan6_events How confident is respondent about that (events on January 6, 2021) conf_trump_russia How confident is respondent about that (Trump colluded with Russia) corruption_change Corruption increased/decreased since Biden became president corruption_wide How widespread corruption is court_authority Whether courts can stop the government from acting illegally covid_democracy Effect of COVID on democracy covid_infection Personal experience with COVID infection covid_personal_econ Effect of COVID on respondent's personal finances covid_unity Effect of COVID on national unity crrnt_unmplymnt_rate What is the current unemployment rate dem_party_dislike Whether respondent dislikes anything about the Democratic Party dem_party_like Whether respondent likes anything about the Democratic Party dem_process_sat Satisfaction with the democratic process democracy_best Whether democracy is preferable to other forms of government dhs_wrrd_trrrst_near How worried about terrorist attack in near future difficult_it_r_vote How difficult was it for respondent to vote discrim_us_asian Discrimination in the US against Asians discrim_us_black Discrimination in the US against blacks discrim_us_christian Discrimination in the US against Christians discrim_us_hispanic Discrimination in the US against Hispanics discrim_us_men Discrimination in the US against men discrim_us_muslim Discrimination in the US against Muslims discrim_us_white Discrimination in the US against whites discrim_us_women Discrimination in the US against women dscrm_us_gay_lsbn Discrimination in the US against Gays and Lesbians dscrm_us_trans_ppl Discrimination in the US against transgender people econ_bttr_worse_next Economy better or worse in next 12 months economic_mobility Economic mobility economy_past_year State of the economy over the past year effct_illgl_immig effect of illegal immigration on crime rate elctns_make_govt_pay Elections make government pay attention election_fairness Perceived fairness of elections eqlty_blf_if_ppl_we If people were treated more fairly we would have fewer problems eqlty_blf_not_big_if Not a big problem if some have more chance in life eqlty_blf_scty_shld Society should make sure everyone has equal opportunity eqlty_blf_we_d_be_if We'd be better off if worried less about equality experts_decide Whether independent experts should make political decisions exprnc_many_guns How many guns in household exprnc_much_money How much money does respondent owe in student loans family_members_home Family members living with respondent favor_opps_allwng Favor/oppose allowing felons to vote favor_opps_bckgrnd Favor/oppose background checks for gun purchases favor_opps_bldng_mxc Favor or oppose building a wall on border with Mexico favor_opps_bnnng Favor/oppose banning 'assault-style' rifles favor_opps_bnnng_k Favor/oppose banning transgender girls from K-12 girls sports favor_opps_endng Favor or oppose ending birthright citizenship favor_opps_free Favor/oppose free trade agreements favor_opps_govt_rdc Favor/oppose government trying to reduce income inequality favor_opps_inc_rgltn Favor/oppose increased regulation on greenhouse emissions favor_opps_laws_gay Favor/oppose laws protect gays/lesbians against job discrimination favor_opps_new_lmts Favor/oppose new limits on imports favor_opps_prfrntl Favor/oppose preferential hiring/promotion of blacks favor_opps_prvdng Favor/oppose providing path to citizenship favor_opps_right_gay Favor/oppose right of gay and lesbian couples to legally marry favor_opps_rqrng Favor/oppose requiring vaccines in schools favor_opps_rqrng_id Favor/oppose requiring ID when voting favor_opps_rstrctng Favor or oppose restricting journalist access favor_opps_trans_ppl Favor/oppose transgender people serve in military favor_opps_us_gvng Favor/oppose U.S. giving weapons to help Ukraine fight Russia favor_opps_us_gvng_2 Favor/oppose U.S. giving military assistance to Israel favor_opps_us_gvng_3 Favor/oppose U.S. giving humanitarian aid to Palestinians fed_bdgt_spend_aid Federal Budget Spending: aid to the poor fed_bdgt_spend_bldng Federal Budget Spending: building and repairing highways fed_bdgt_spend_brdr Federal Budget Spending: Tightening border security fed_bdgt_spend_dlng Federal Budget Spending: dealing with crime fed_bdgt_spend_env Federal Budget Spending: protecting the environment fed_bdgt_spend_pblc Federal Budget Spending: public schools fed_bdgt_spend_soc Federal Budget Spending: Social Security fed_bdgt_spend_wlfr Federal Budget Spending: welfare programs fed_govt_trts_black Federal government treats blacks or whites better feel_afraid How afraid respondent feels about the country feel_angry How angry respondent feels about the country feel_happy How happy respondent feels about the country feel_hopeful How hopeful respondent feels about the country feel_nervous How nervous respondent feels about the country feel_outraged How outraged respondent feels about the country feel_proud How proud respondent feels about the country feel_worried How worried respondent feels about the country fin_borrowed Has respondent done any of the following - borrowed money to pay bills fin_cc_debt Has respondent done any of the following - took on credit card debt fin_cncrn_any_fmly Have any family members or close friends lost jobs in last 12 months fin_cncrn_lkly_able How likely respondent able to make all housing payments in next 12 months fin_cncrn_wrrd_crrnt How worried is respondent about current financial situation fin_cut_spend Has respondent done any of the following - cut down spending fin_next_year Expected personal financial situation one year from now fin_none Has respondent done any of the following - none of these fin_past_year Personal financial situation compared with one year ago fin_postpone Has respondent done any of the following - cancel/postpone major purchase fin_savings Has respondent done any of the following - dipped into savings fin_strain_sum Number of financial strain actions reported. fmly_nghbrs_cwrkrs respondent has family/neighbors/coworkers/friends who are gay, lesbian or bisexual fmly_nghbrs_cwrkrs_1 respondent has family/neighbors/coworkers/friends who are transgender frgn_plcy_force Force to solve international problems ft_asian_americans Warmth rating of Asian-Americans ft_biden_post Warmth rating of Joe Biden after the election ft_biden_pre Warmth rating of Joe Biden before the election ft_big_business Warmth rating of big business ft_black_lives_mttr Warmth rating of Black Lives Matter ft_black_people Warmth rating of Black people ft_christian_fund Warmth rating of Christian fundamentalists ft_christians Warmth rating of Christians ft_congress Warmth rating of congress ft_conservatives Warmth rating of conservatives ft_dem_party Warmth rating of the Democratic Party ft_fbi Warmth rating of Federal Bureau of Investigation (FBI) ft_feminists Warmth rating of feminists ft_gay_men_lesbians Warmth rating of gay men and lesbians ft_gretchen_whitmer Warmth rating of Gretchen Whitmer ft_harris_post Warmth rating of Kamala Harris after the election ft_harris_pre Warmth rating of Kamala Harris before the election ft_hispanics Warmth rating of Hispanics ft_illegal_immigs Warmth rating of illegal immigrants ft_jews Warmth rating of Jews ft_josh_shapiro Warmth rating of Josh Shapiro ft_labor_unions Warmth rating of labor unions ft_liberals Warmth rating of liberals ft_maga Warmth rating of Make America Great Again (MAGA) ft_mark_kelly Warmth rating of Mark Kelly ft_muslims Warmth rating of Muslims ft_nra Warmth rating of National Rifle Association (NRA) ft_plnnd_prnthd Warmth rating of Planned Parenthood ft_police Warmth rating of police ft_rep_party Warmth rating of the Republican Party ft_robert_kennedy_jr Warmth rating of Robert Kennedy, Jr. ft_roy_cooper Warmth rating of Roy Cooper ft_rural_americans Warmth rating of rural Americans ft_sen_dem_cand Warmth rating of Democratic Senate candidate ft_sen_rep_cand Warmth rating of Republican Senate candidate ft_trans_people Warmth rating of transgender people ft_trump_post Warmth rating of Donald Trump after the election ft_trump_pre Warmth rating of Donald Trump before the election ft_us_house_cand Warmth rating of US House candidate that respondent voted for ft_us_supreme_court Warmth rating of US Supreme Court ft_vance_post Warmth rating of J.D. Vance after the election ft_vance_pre Warmth rating of J.D. Vance before the election ft_walz_post Warmth rating of Tim Walz after the election ft_walz_pre Warmth rating of Tim Walz before the election ft_white_people Warmth rating of White people gay_lsbn_cpls_allwd Should gay/lesbian couples be allowed to adopt children or not gender_s_gender What is respondent's gender? gender_s_sex What is respondent's sex? gndr_cnsdr_thmslf_be Does respondent consider themself to be transgender gndr_role_women_c Do women complaining about discrimination cause more problems gndr_role_women_seek Do women demanding equality seek special favors gndr_scale_fmnnty respondent femininity scale gndr_scale_msclnty respondent masculinity scale gndr_sxl_ornttn Sexual orientation of respondent good_job_house_dist How good a job does House incumbent do in district govt_4yr_perf Government performance over the last four years govt_actn_rsng Government action about rising temperatures govt_big_intrsts_all Government run by a few big interests or for benefit of all govt_corrupt_extent How widespread corruption is in government govt_health_care Government responsibility for health care govt_more_less_opd Should government do more/less about opioid drug addiction govt_wsts_tax_money Does government waste much tax money group_inflnc_much How much influence do Hispanics have in US politics group_inflnc_much__2 How much influence do blacks have in US politics group_inflnc_much__3 How much influence do Asians have in US politics group_inflnc_much_us How much influence do whites have in US politics group_treatment Whether some groups receive worse treatment than others gun_ownership_count Number of guns respondent owns harris_trait_cares Kamala Harris trait: really cares harris_trait_energy Kamala Harris trait: energetic harris_trait_honest Kamala Harris trait: honest harris_trait_know Kamala Harris trait: knowledgeable harris_trait_lead Kamala Harris trait: strong leadership has_children Has any children has_daughters Has one or more daughters has_sons Has one or more sons health_health_ins Does respondent have health insurance hispanic_summary Hispanic ethnicity group hlpfl_hrmfl_if_pres Helpful/harmful if president did not have to worry about congress/courts hlth_bnfts_vccntns Health benefits of vaccinations outweigh risks hlth_cncrnd_lsng_ins respondent concerned about losing health insurance hlth_cncrnd_pyng respondent concerned about paying for health care hlth_trbl_cncntrtng Trouble concentrating in past week house_vote_intent Party of respondent's U.S. House vote intention or preference house_vote_party Party of respondent's U.S. House vote house_vote_pref Party of respondent's U.S. House vote or preference household_landline Is there a working HH landline phone hshld_union_mmbr Anyone in HH belong to labor union hunter_laptop_claim Hunter Biden's laptop showed he made deal with Ukrainian and Chinese businesses id_dcmnt_valid_non Does respondent have a valid, non-expired passport id_dcmnt_valid_non_s Does respondent have a valid, non-expired driver's license immgs_gnrlly_good Are immigrants generally good or bad for America's economy immig_crime Belief that immigrants increander, sse crime imp_american_id How important is being American to respondent's identity imp_elect_asian How important that more Asians get elected to political office imp_elect_black_ppl How important that more blacks get elected to political office imp_elect_hispanic How important that more Hispanics get elected to political office imp_elect_lgbt_ppl How important that more LGBT people get elected to political office imp_elect_woman_pres How important that a woman be elected president of the US imp_elect_women How important that more women get elected to political office imp_immgs_adapt_us How important is it for immigrants to adapt to customs/traditions of the US imp_issue_abort How important is the following issue: abortion imp_issue_clim_chng How important is the following issue: climate change imp_issue_cost_lvng How important is the following issue: cost of living imp_issue_crime How important is the following issue: crime imp_issue_gun_policy How important is the following issue: gun policy imp_issue_illgl How important is the following issue: illegal immigration imp_issue_pblc_schls How important is the following issue: what is taught in public schools imp_issue_rcl_ineq How important is the following issue: racial inequality imp_issue_us_dmcrcy How important is the following issue: US democracy imp_issue_war_gaza How important is the following issue: War in Gaza imp_urban_rural_id How important is urban or rural to respondent's identity imp_white_id How important is being white to respondent's identity incrs_dcrs_govt_help Increase/decrease government spending to help pay for health care incrsng_dvrsty_made Increasing diversity made US better/worse place to live internet_at_home Does respondent use Internet at home interview_status Pre/Post Interview Completion Status intrvw_cntxt_stsfd How satisfied is respondent with life it_be_good_scty_more Would it be good for society to have more or less government regulation jan6_pro_trump Events on January 6, 2021 were carried out by pro-Trump protestors or FBI agents job_satisfaction How satisfied or dissatisfied is respondent with current job? laid_off_last_6 Working now: out of work or laid off in last 6 months legit_win_2020 Who was the legitimate winner of the 2020 presidential election legit_win_2024 Was Trump or Harris the legitimate winner of the 2024 presidential election less_or_more_govt Less or more government life_exprnc_ever Life experience: has respondent ever been bitten by a shark life_exprnc_gone_y Life experience: has respondent gone hunting or fishing in past year life_exprnc_know_smn Life experience: does respondent know someone moved to US from another country life_exprnc_used_pas Life experience: has respondent used public transportation in past year like_dem_cand Like-dislike rating of the Democratic presidential candidate like_dem_party Like-dislike rating of the Democratic Party like_rep_cand Like-dislike rating of the Republican presidential candidate like_rep_party Like-dislike rating of the Republican Party likely_r_vote How likely respondent is to vote lnkd_fate_white_ppl White respondent: what happens to white people will affect respondent's life lr_dem_party Left-right placement of the Democratic Party lr_rep_party Left-right placement of the Republican Party lr_self Respondent's left-right self-placement many_days_past_week How many days in past week discussed politics with family or friends men_econ_crisis Whether men or women are better suited to handle an economic crisis men_pandemic_lead Whether men or women are better suited to handle a pandemic mode_post Interview mode after the election mode_pre Interview mode before the election mrlty_blf_fewer_if Fewer problems if there was more emphasis on traditional family values mrlty_blf_world_we The world is changing & we should adjust view of moral behavior mrtl_stts_5_ctgry Marital status (5 category) much_dscrm_faced_bcs How much discrimination has respondent faced personally because or race/ethnicity much_lrgr_incm_gap How much larger is income gap today much_pol_dffrncs How much have political differences hurt relationships w/family much_pol_vlnc_inc How much has political violence increased/decreased compared to 4 yrs ago natid_born_us Importance of being born in the United States for national identity natid_speak_english Importance of speaking English for national identity natl_econ_bttr_worse National economy better or worse in last year news_newspaper Frequency of reading newspapers news_online Frequency of visiting online news sites news_private_tv Frequency of watching news on private television news_public_tv Frequency of watching news on public television news_radio Frequency of listening to news on radio news_social_media Frequency of using social media for news often_bght_bycttd How often bought or boycotted product/service for social/political reasons often_plc_offcrs_use How often do police officers use more force than necessary often_votes_cntd How often are votes counted fairly party_better_crime Which party would do a better job handling: crime party_better_economy Which party better: handling nations economy party_control Preference for one-party or split-party government party_id Party ID partyid3 Party ID, 3 categories past_12_mnths_attnd Has respondent in past 12 months: attend mtg about issue facing community/schools past_12_mnths_cntctd Has respondent in past 12 months: contacted federal elected official past_12_mnths_done Has respondent in past 12 months: done any volunteer work past_12_mnths_given Has respondent in past 12 months: given money to other organization past_12_mnths_gttn Has respondent in past 12 months: gotten into a political argument with someone past_12_mnths_jnd Has respondent in past 12 months: joined a protest march, rally, or demonstration past_12_mnths_pstd Has respondent in past 12 months: posted comment online about political issue past_12_mnths_sign Has respondent in past 12 months: sign internet or paper petition plc_exprnc_drng_past During past 12 months, respondent or any family members stopped by police plc_exprnc_ever_been Has respondent ever been arrested plc_treat_black_bttr Police treat blacks or whites better pol_attention Attention to politics and elections pol_interest Interest in politics pol_know_many_years How many years in full term for US Senator pol_know_prgrm_fed On which program does Federal government spend the least pol_know_pty_most Party with most members in Senate before election pol_know_pty_most_e Party with most members in House before election ppl_rural_areas_ge_2 People in rural areas get too much/too little respect ppl_rural_areas_get People in rural areas get more/less from government ppl_rural_areas_too People in rural areas have too much/too little influence pres_covid_perf president's handling of COVID pres_primary_vote Whether respondent voted in a presidential primary or caucus pres_two_way_vote Choice if presidential election were only Harris and Trump pres_vote_2016_rcll Recall of 2016 presidential vote choice pres_vote_2024 presidential vote in 2024 pres_vote_intent Whether respondent intended to vote for president pres_vote_intnt_chc For whom does respondent intend to vote for president pres_vote_party Party of respondent's presidential vote intention or preference pres_vote_pref presidential vote or preference pres_vote_strength Strength of presidential vote preference prfr_gov_offcl_stcks Prefer government official who compromises/sticks to principles pty_better_abort Which party would do a better job handling: abortion pty_better_env Which party better: handling environment pty_better_immig Which party better: handling immigration pty_bttr_clim_chng Which party would do a better job handling: climate change pty_bttr_cost_lvng Which party would do a better job handling: cost of living pty_bttr_illgl_immig Which party would do a better job handling: illegal immigration pty_bttr_tght_pblc Which party would do a better job handling: what is taught in public schools pty_contact_r_camp Which party contact respondent about campaign pty_id_imp Party identity importance r_5_ctgry_level_educ Respondent 5 Category level of education r_age_election_day Respondent age on Election Day r_favor_opps_affrmtv Does respondent favor/oppose affirmative action in universities r_favor_opps_death respondent favor/oppose death penalty r_occptn_stts_1 respondent occupation status 1 digit r_rgstr_vote_first When did respondent register to vote for the first time r_self_idntfd_race respondent self-identified race/ethnicity r_side_more_isrls Does respondent side more with Israelis or Palestinians r_sps_prtnr_5_ctgry Respondent spouse/partner 5 Category level of education r_sps_prtnr_race respondent spouse or partner race/ethnicity r_think_they_get Does respondent think they get more or less than their fair share in life r_usually_vote How does respondent usually vote r_voted_2024_elctn When respondent voted in 2024 election r_voted_2024_elctn_2 How respondent voted in 2024 election race_atttd_often How often does respondent have concerned feelings for other racial/ethnic groups race_atttd_often_2 How often respondent imagines how they would feel before criticizing other groups race_atttd_often_smn How often respondent feels protective of someone due to race or ethnicity race_atttd_often_try How often does respondent try to understand perspective of other racial/ethnic groups rcll_2020_pres_vote Recall of last (2020) presidential vote recall_chief_jus Consolidated office-recall score for U.S. Supreme Court Chief Justice Roberts. recall_fr_pres Consolidated office-recall score for French president Emmanuel Macron. recall_ru_pres Consolidated office-recall score for Russian president Vladimir Putin. recall_sen_lead Consolidated office-recall score for Senate Majority Leader Schumer. recall_speaker Consolidated office-recall score for Speaker of the House Johnson. referendums_decide Whether citizen referendums should make political decisions reg_pty_reg_state Party registration in state of registration (pre nonvoter) registered_voter Whether respondent is registered to vote registration_state Voter registration status religion_detail Detailed religious tradition religion_major_grp Major religious tradition rep_party_dislike Whether respondent dislikes anything about the Republican Party rep_party_like Whether respondent likes anything about the Republican Party rqr_emplyrs_offer Require employers to offer paid leave to parents of new children sample_census_region SAMPLE: Census region sample_type Sample Type scale_abort_dem_pres Position on abortion: Democratic presidential candidate scale_abort_rep_pres Position on abortion: Republican presidential candidate scale_aid_black_dem Position on government assistance to blacks scale: Democratic presidential candidate scale_aid_black_rep Position on government assistance to blacks scale: Republican presidential candidate scale_aid_black_self Position on government assistance to blacks scale: self-placement scale_defense_self Position on defense spending: self-placement scale_dfns_dem_pres Position on defense spending: Democratic presidential candidate scale_dfns_rep_pres Position on defense spending: Republican presidential candidate scale_env_bsnss_dem Position on environment-business tradeoff: Democratic presidential candidate scale_env_bsnss_rep Position on environment-business tradeoff: Republican presidential candidate scale_env_bsnss_self Position on environment-business tradeoff: self-placement scale_hlth_ins_dem Position on government-private medical insurance scale: Democratic presidential candidate scale_hlth_ins_rep Position on government-private medical insurance scale: Republican presidential candidate scale_hlth_ins_self Position on government-private medical insurance scale: self-placement scale_jobs_incm_dem Position on guaranteed job-income scale: Democratic presidential candidate scale_jobs_incm_rep Position on guaranteed job-income scale: Republican presidential candidate scale_jobs_incm_self Position on guaranteed job-income scale: self-placement scale_lbcn_dem_house Position on liberal-conservative: Democratic House candidate scale_lbcn_dem_pres Position on liberal-conservative: Democratic presidential candidate scale_lbcn_rep_house Position on liberal-conservative: Republican House candidate scale_lbcn_rep_pres Position on liberal-conservative: Republican presidential candidate scale_libcon_dem_pty Position on liberal-conservative: Democratic party scale_libcon_rep_pty Position on liberal-conservative: Republican party scale_libcon_self Position on liberal-conservative self-placement scale_services_self Position on spending & services: self-placement scale_svc_dem_pres Position on spending & services: Democratic presidential candidate scale_svc_rep_pres Position on spending & services: Republican presidential candidate self_cnsr_need_be Need to be more sensitive talking or people too easily offended self_cnsr_often_self How often does respondent self censor senate_vote_intent Party of respondent's U.S. Senate vote intention or preference shld_mnmm_wage_be Should the minimum wage be raised, kept the same, or lowered smpl_smpl_lctn_state SAMPLE: Sample location state postal abbreviation soc_class_dscrb_soc How would respondent describe social class [EGSS] soc_med_use_often How often use Facebook soc_med_use_often_2 How often post political content on Facebook socmed_facebook Which social media platforms respondent visited - Facebook [mention] socmed_instagram Which social media platforms respondent visited - Instagram [mention] socmed_other Which social media platforms respondent visited - Other [mention] socmed_plat_sum Number of social media platforms visited. socmed_reddit Which social media platforms respondent visited - Reddit [mention] socmed_snapchat Which social media platforms respondent visited - SnapChat [mention] socmed_tiktok Which social media platforms respondent visited - TikTok [mention] socmed_twitter Which social media platforms respondent visited - Twitter [mention] socmed_youtube Which social media platforms respondent visited - YouTube [mention] split_ticket_vote Whether respondent votes a straight or split ticket sps_prtnr_gndr respondent spouse/partner gender stereo_black_violent Stereotype: Blacks violent stereo_white_violent Stereotype: Whites violent str_asian_amrcns Stereotype: Asian-Americans hardworking str_asian_amrcns_2 Stereotype: Asian-Americans violent str_black_hrdwrkng Stereotype: Blacks hardworking str_hspnc_hrdwrkng Stereotype: Hispanics hardworking str_hspnc_vlnt Stereotype: Hispanics violent str_white_hrdwrkng Stereotype: Whites hardworking strong_leader_good Whether having a strong leader in government is good talk_frnds_fmly_live Does respondent talk to friends/family who live in other countries about events in that country threat_china How much is China a threat to the United States threat_iran How much is Iran a threat to the United States threat_israel How much is Israel a threat to the United States threat_japan How much is Japan a threat to the United States threat_mexico How much is Mexico a threat to the United States threat_russia How much is Russia a threat to the United States total_hshld_incm Total (household) income total_hshld_incm_2 Total (household) income [six category] trans_sports_ban Support for banning transgender girls from girls' sports trump_courts_fair Have the courts treated Donald Trump fairly or unfairly trump_courts_fair2 Courts treated Donald Trump fairly/unfairly trump_jury_verdict Manhattan jury that found Trump guilty made right/wrong decision trump_russia_claim Donald Trump's campaign colluded with Russian government in 2016 trump_trait_cares Donald Trump trait: really cares trump_trait_energy Donald Trump trait: energetic trump_trait_honest Donald Trump trait: honest trump_trait_know Donald Trump trait: knowledgeable trump_trait_lead Donald Trump trait: strong leadership trust_congress Trust in Congress trust_courts How often can you trust the court system to do what is right trust_effccy_no_say Have no say about what government does trust_effccy_pblc_t Public officials don't care what people think trust_effccy_pol_too Politics/government too complicated to understand trust_effccy_well How well does respondent understand important political issues trust_federal_govt How often trust government in Washington to do what is right trust_govt Trust in government trust_judiciary Trust in the judiciary trust_news_media Trust and confidence in the news media trust_parties Trust in political parties trust_people How often can people be trusted trust_scientists Trust in scientists trust_soc_media Trust in social media trust_trad_media Trust in traditional media understands_issues Agreement that respondent understands important political issues unmplymnt_bttr_worse Unemployment better or worse in last year unmplymnt_next_year More or less unemployment in next year urban_unrest_force Preferred response to urban unrest us_bttr_worse_than US better or worse than most other countries us_democracy_scale Rating of how democratic the United States is uslly_think_self_as Does respondent usually think of self as a rural or urban person vccn_conf_vccns_au How confident is respondent about that (vaccines cause autism) vccn_most_scntfc_cau Does most scientific evidence show vaccines cause autism or not vote_as_duty_choice Voting as duty or choice vote_makes_diff Whether who people vote for makes a difference vote_prob_abs Did respondent encounter any problems voting - difficulty obtaining absentee ballot vote_prob_ballot Did respondent encounter any problems voting - confusion about ballot or machine vote_prob_id Did respondent encounter any problems voting - concern about identification card vote_prob_mail Did respondent encounter any problems voting - issue mailing ballot vote_prob_no_try Did respondent encounter any problems voting - respondent didn't try to vote vote_prob_none Did respondent encounter any problems voting - none at all vote_prob_other Did respondent encounter any problems voting - other problem vote_prob_reg Did respondent encounter any problems voting - registration problem vote_prob_sum Number of voting problems reported. vote_prob_transp Did respondent encounter any problems voting - difficulty getting to polling place vote_prob_wait Did respondent encounter any problems voting - long wait times vote_prob_weather Did respondent encounter any problems voting - bad weather vote_prob_work Did respondent encounter any problems voting - work schedule vote_satisfaction Satisfaction with how people voted in the election voted_early Whether respondent had already voted early voted_president_2016 Did respondent vote for president in 2016 election voter_turnout Voter turnout in 2024 women_blf_agree_dsgr Agree/disagree - women interpret innocent remarks as sexist women_blf_women_seek Women seek to gain power by getting control over men women_congress_share Whether the share of women in Congress is too high or too low women_rep_policy Support for policies to increase women's representation work_hours_pay_cut Working now: had reduction in work hrs or pay cut work_hrssmnt_exprncd Has respondent experienced harassment at work world_tmprtr_conf_t How confident is respondent about that (world temperatures have risen) world_tmprtr_world Have world temperatures have risen on average or last 100 years or not worried_losing_job Working now: worry about losing job in near future wt Analysis weight for the pre-election survey wt_post Analysis weight for the post-election survey _<08>S_<08>o_<08>u_<08>r_<08>c_<08>e: American National Election Studies. 2024 Time Series Study Full Release. Note: region was analyzed as an unordered factor. If its categories have a meaningful order, create an ordered version with ordered(region, levels=...) before calling describeC(). [ FAIL 3 | WARN 0 | SKIP 0 | PASS 404 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-getC.R:41:3'): getC imports SAS transport extensions ───────── Expected `quiet_run(getC(xpt_file, confirm = FALSE))` to equal `source_data`. Differences: `attr(actual$id, 'haven_meta')` is an S7 object of class <haven::meta_var_sas> `attr(expected$id, 'haven_meta')` is absent `attr(actual$value, 'haven_meta')` is an S7 object of class <haven::meta_var_sas> `attr(expected$value, 'haven_meta')` is absent ── Failure ('test-getC.R:42:3'): getC imports SAS transport extensions ───────── Expected `quiet_run(getC(xport_file, confirm = FALSE))` to equal `source_data`. Differences: `attr(actual$id, 'haven_meta')` is an S7 object of class <haven::meta_var_sas> `attr(expected$id, 'haven_meta')` is absent `attr(actual$value, 'haven_meta')` is an S7 object of class <haven::meta_var_sas> `attr(expected$value, 'haven_meta')` is absent ── Failure ('test-getC.R:51:3'): getC imports SAS data files ─────────────────── Expected `quiet_run(getC(sas_file, confirm = FALSE))` to equal `source_data`. Differences: `attr(actual$id, 'haven_meta')` is an S7 object of class <haven::meta_var_sas> `attr(expected$id, 'haven_meta')` is absent `attr(actual$value, 'haven_meta')` is an S7 object of class <haven::meta_var_sas> `attr(expected$value, 'haven_meta')` is absent [ FAIL 3 | WARN 0 | SKIP 0 | PASS 404 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-fedora-clang

Version: 1.0.0
Check: tests
Result: ERROR Running ‘testthat.R’ [4s/128s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(RCPA4) > > test_check("RCPA4") ================================================================================ Descriptive Statistics ================================================================================ Table: Descriptive Statistics for character_scores character_scores ---------------- ----------------- Observed values 3 Missing values 0 Unique values 2 Class factor Mode 10.000 ================================================================================ Descriptive Statistics ================================================================================ Table: Descriptive Statistics for factor_scores factor_scores ---------------- -------------- Observed values 3 Missing values 0 Unique values 2 Class factor Mode 10.000 Saving _problems/test-getC-41.R Saving _problems/test-getC-42.R Saving _problems/test-getC-51.R ================================================================================ Importing Data into R Session ================================================================================ File selected: filefb0e139ce518.rda File type: rda debate package:RCPA4 R Documentation _<08>D_<08>e_<08>b_<08>a_<08>t_<08>e _<08>E_<08>x_<08>p_<08>e_<08>r_<08>i_<08>m_<08>e_<08>n_<08>t _<08>d_<08>a_<08>t_<08>a_<08>s_<08>e_<08>t _<08>f_<08>o_<08>r _<08>R _<08>C_<08>o_<08>m_<08>p_<08>a_<08>n_<08>i_<08>o_<08>n _<08>t_<08>o _<08>P_<08>o_<08>l_<08>i_<08>t_<08>i_<08>c_<08>a_<08>l _<08>A_<08>n_<08>a_<08>l_<08>y_<08>s_<08>i_<08>s, _<08>F_<08>o_<08>u_<08>r_<08>t_<08>h _<08>E_<08>d_<08>i_<08>t_<08>i_<08>o_<08>n _<08>D_<08>e_<08>s_<08>c_<08>r_<08>i_<08>p_<08>t_<08>i_<08>o_<08>n: A dataset with variables about students who participated in an experiment. This dataset is used to demonstrate application of R to political analysis. See book Appendix for variable names and descriptions. _<08>F_<08>o_<08>r_<08>m_<08>a_<08>t: A data frame with 171 rows and 14 variables. obs Unique identification number for each subject assignment Name of condition subject was assigned to tv Did subject watch debate on TV? debinfo Number of correct answers on five-question quiz about the debate catholic Is subject Catholic? issues Which candidate do you agree with on policy issues? integrity Which candidate has more integrity? leadership Which candidate is the more effective leader? empathy Which candidate has more empathy? sophdum Is respondent a sophomore? won Which candidate won the debate? pid Self-reported partisan identification ideology Self-reported political ideology gender Subject's gender _<08>S_<08>o_<08>u_<08>r_<08>c_<08>e: Jamie Druckman. See Appendix of printed textbook for further information. anes package:RCPA4 R Documentation _<08>A_<08>N_<08>E_<08>S _<08>2_<08>0_<08>2_<08>4 _<08>d_<08>a_<08>t_<08>a_<08>s_<08>e_<08>t _<08>f_<08>o_<08>r _<08>R _<08>C_<08>o_<08>m_<08>p_<08>a_<08>n_<08>i_<08>o_<08>n _<08>t_<08>o _<08>P_<08>o_<08>l_<08>i_<08>t_<08>i_<08>c_<08>a_<08>l _<08>A_<08>n_<08>a_<08>l_<08>y_<08>s_<08>i_<08>s, _<08>F_<08>o_<08>u_<08>r_<08>t_<08>h _<08>E_<08>d_<08>i_<08>t_<08>i_<08>o_<08>n _<08>D_<08>e_<08>s_<08>c_<08>r_<08>i_<08>p_<08>t_<08>i_<08>o_<08>n: A student-friendly subset of the 2024 American National Election Study Time Series. Variables were selected and renamed for use in RCPA4 examples. See book Appendix for variable names and descriptions. _<08>F_<08>o_<08>r_<08>m_<08>a_<08>t: A data frame with 5521 rows and 517 variables. abort_std_abort_self Abortion: self-placement abortion_scale_self Position on abortion: self-placement addrss_years_lived Years respondent lived at address appr_biden_drop Approval of Biden dropping from presidential race appr_biden_out Approval of Joe Biden dropping out of presidential race appr_cllgs_unvrsts Approval of how colleges and universities are run appr_cong_hndl_its Approval of Congress handling its job appr_dem_new_cand Approval of Democratic party choosing new candidate appr_dvrsty_eqty_dei Approval of Diversity, Equity, and Inclusion (DEI) appr_house_incumbent Approval of House incumbent appr_pres_handle_job Approval of president handling job appr_pres_hndl_abort Approval of president handling abortion policy appr_pres_hndl_crime Approval of president handling crime appr_pres_hndl_econ Approval of president handling economy appr_pres_hndl_frgn Approval of president handling foreign relations appr_pres_hndl_immig Approve or dissaprove president handling immigration appr_pres_immunity Approval of Supreme Court decision president immune appr_prtsts_war_gaza Approval of protests against war in Gaza appr_sup_ct_hndl_its Approval of Supreme Court handling its job appr_trans_ppl_use Approval of transgender people use bathroom that matches gender identity appr_vice_pres_hndl Approval of vice president handling job attn_sxl_hrssmnt_as Attention to sexual harassment as gone too far/not far enough bdgt_tax_favor_opps Favor or oppose tax on millionaires bdgt_tax_imp_rdcng Importance of reducing deficit biz_leaders_decide Whether business leaders should make political decisions black_atttd_agree Agree/disagree: past slavery & discrimination make it difficult for blacks black_atttd_agree_2 Agree/disagree: blacks should work their way up without special favors black_atttd_agree_if Agree/disagree: if blacks tried harder they'd be as well off as whites black_atttd_agree_t Agree/disagree: blacks have gotten less than they deserve bttr_worse_if_man Better/worse if man works and woman takes care of home camp_fnnc_cong_chng Congress change votes because of donation to campaign camp_fnnc_cong_pas_2 Congress pass laws that benefit contributor individuals camp_fnnc_cong_pass Congress pass laws that benefit contributor organization camp_fnnc_lmts_camp Limits on campaign spending camp_interest Interest in following campaigns cares_wins_pres How much respondent cares who wins the presidency case_id 2024 Time Series Case ID cell_phone Does respondent personally have a cell phone child_brght_illglly Should children brought illegally be sent back or allowed to stay child_household How many children in HH age 0-17 child_rrng_child_i_2 Which child trait more important: curiosity or good manners child_rrng_child_i_3 Which child trait more important: obedience or self-reliance child_rrng_child_i_4 Which child trait more important: considerate or well-behaved child_rrng_child_imp Which child trait more important: independence or respect choice_satisfaction Satisfaction with the range of choices in elections cncrn_govt_undrmn Concern that government might undermine the news media cnsdr_thmslf_fmnst Does respondent consider themself a feminist or anti-feminist cntrbt_any_other respondent contribute to any other group that supported or opposed candidates cntry_bttr_off_if_we Country would be better off if we just stayed home cntry_feel_irrttd How irritated respondent feels about how things are going in the country cntry_right_track Are things in the country on right track conf_2020_winner How confident is respondent about that (winner of 2020 election) conf_2024_winner How confident is respondent about that (winner of 2024 election) conf_hunter_biden How confident is respondent about that (Hunter Biden) conf_jan6_events How confident is respondent about that (events on January 6, 2021) conf_trump_russia How confident is respondent about that (Trump colluded with Russia) corruption_change Corruption increased/decreased since Biden became president corruption_wide How widespread corruption is court_authority Whether courts can stop the government from acting illegally covid_democracy Effect of COVID on democracy covid_infection Personal experience with COVID infection covid_personal_econ Effect of COVID on respondent's personal finances covid_unity Effect of COVID on national unity crrnt_unmplymnt_rate What is the current unemployment rate dem_party_dislike Whether respondent dislikes anything about the Democratic Party dem_party_like Whether respondent likes anything about the Democratic Party dem_process_sat Satisfaction with the democratic process democracy_best Whether democracy is preferable to other forms of government dhs_wrrd_trrrst_near How worried about terrorist attack in near future difficult_it_r_vote How difficult was it for respondent to vote discrim_us_asian Discrimination in the US against Asians discrim_us_black Discrimination in the US against blacks discrim_us_christian Discrimination in the US against Christians discrim_us_hispanic Discrimination in the US against Hispanics discrim_us_men Discrimination in the US against men discrim_us_muslim Discrimination in the US against Muslims discrim_us_white Discrimination in the US against whites discrim_us_women Discrimination in the US against women dscrm_us_gay_lsbn Discrimination in the US against Gays and Lesbians dscrm_us_trans_ppl Discrimination in the US against transgender people econ_bttr_worse_next Economy better or worse in next 12 months economic_mobility Economic mobility economy_past_year State of the economy over the past year effct_illgl_immig effect of illegal immigration on crime rate elctns_make_govt_pay Elections make government pay attention election_fairness Perceived fairness of elections eqlty_blf_if_ppl_we If people were treated more fairly we would have fewer problems eqlty_blf_not_big_if Not a big problem if some have more chance in life eqlty_blf_scty_shld Society should make sure everyone has equal opportunity eqlty_blf_we_d_be_if We'd be better off if worried less about equality experts_decide Whether independent experts should make political decisions exprnc_many_guns How many guns in household exprnc_much_money How much money does respondent owe in student loans family_members_home Family members living with respondent favor_opps_allwng Favor/oppose allowing felons to vote favor_opps_bckgrnd Favor/oppose background checks for gun purchases favor_opps_bldng_mxc Favor or oppose building a wall on border with Mexico favor_opps_bnnng Favor/oppose banning 'assault-style' rifles favor_opps_bnnng_k Favor/oppose banning transgender girls from K-12 girls sports favor_opps_endng Favor or oppose ending birthright citizenship favor_opps_free Favor/oppose free trade agreements favor_opps_govt_rdc Favor/oppose government trying to reduce income inequality favor_opps_inc_rgltn Favor/oppose increased regulation on greenhouse emissions favor_opps_laws_gay Favor/oppose laws protect gays/lesbians against job discrimination favor_opps_new_lmts Favor/oppose new limits on imports favor_opps_prfrntl Favor/oppose preferential hiring/promotion of blacks favor_opps_prvdng Favor/oppose providing path to citizenship favor_opps_right_gay Favor/oppose right of gay and lesbian couples to legally marry favor_opps_rqrng Favor/oppose requiring vaccines in schools favor_opps_rqrng_id Favor/oppose requiring ID when voting favor_opps_rstrctng Favor or oppose restricting journalist access favor_opps_trans_ppl Favor/oppose transgender people serve in military favor_opps_us_gvng Favor/oppose U.S. giving weapons to help Ukraine fight Russia favor_opps_us_gvng_2 Favor/oppose U.S. giving military assistance to Israel favor_opps_us_gvng_3 Favor/oppose U.S. giving humanitarian aid to Palestinians fed_bdgt_spend_aid Federal Budget Spending: aid to the poor fed_bdgt_spend_bldng Federal Budget Spending: building and repairing highways fed_bdgt_spend_brdr Federal Budget Spending: Tightening border security fed_bdgt_spend_dlng Federal Budget Spending: dealing with crime fed_bdgt_spend_env Federal Budget Spending: protecting the environment fed_bdgt_spend_pblc Federal Budget Spending: public schools fed_bdgt_spend_soc Federal Budget Spending: Social Security fed_bdgt_spend_wlfr Federal Budget Spending: welfare programs fed_govt_trts_black Federal government treats blacks or whites better feel_afraid How afraid respondent feels about the country feel_angry How angry respondent feels about the country feel_happy How happy respondent feels about the country feel_hopeful How hopeful respondent feels about the country feel_nervous How nervous respondent feels about the country feel_outraged How outraged respondent feels about the country feel_proud How proud respondent feels about the country feel_worried How worried respondent feels about the country fin_borrowed Has respondent done any of the following - borrowed money to pay bills fin_cc_debt Has respondent done any of the following - took on credit card debt fin_cncrn_any_fmly Have any family members or close friends lost jobs in last 12 months fin_cncrn_lkly_able How likely respondent able to make all housing payments in next 12 months fin_cncrn_wrrd_crrnt How worried is respondent about current financial situation fin_cut_spend Has respondent done any of the following - cut down spending fin_next_year Expected personal financial situation one year from now fin_none Has respondent done any of the following - none of these fin_past_year Personal financial situation compared with one year ago fin_postpone Has respondent done any of the following - cancel/postpone major purchase fin_savings Has respondent done any of the following - dipped into savings fin_strain_sum Number of financial strain actions reported. fmly_nghbrs_cwrkrs respondent has family/neighbors/coworkers/friends who are gay, lesbian or bisexual fmly_nghbrs_cwrkrs_1 respondent has family/neighbors/coworkers/friends who are transgender frgn_plcy_force Force to solve international problems ft_asian_americans Warmth rating of Asian-Americans ft_biden_post Warmth rating of Joe Biden after the election ft_biden_pre Warmth rating of Joe Biden before the election ft_big_business Warmth rating of big business ft_black_lives_mttr Warmth rating of Black Lives Matter ft_black_people Warmth rating of Black people ft_christian_fund Warmth rating of Christian fundamentalists ft_christians Warmth rating of Christians ft_congress Warmth rating of congress ft_conservatives Warmth rating of conservatives ft_dem_party Warmth rating of the Democratic Party ft_fbi Warmth rating of Federal Bureau of Investigation (FBI) ft_feminists Warmth rating of feminists ft_gay_men_lesbians Warmth rating of gay men and lesbians ft_gretchen_whitmer Warmth rating of Gretchen Whitmer ft_harris_post Warmth rating of Kamala Harris after the election ft_harris_pre Warmth rating of Kamala Harris before the election ft_hispanics Warmth rating of Hispanics ft_illegal_immigs Warmth rating of illegal immigrants ft_jews Warmth rating of Jews ft_josh_shapiro Warmth rating of Josh Shapiro ft_labor_unions Warmth rating of labor unions ft_liberals Warmth rating of liberals ft_maga Warmth rating of Make America Great Again (MAGA) ft_mark_kelly Warmth rating of Mark Kelly ft_muslims Warmth rating of Muslims ft_nra Warmth rating of National Rifle Association (NRA) ft_plnnd_prnthd Warmth rating of Planned Parenthood ft_police Warmth rating of police ft_rep_party Warmth rating of the Republican Party ft_robert_kennedy_jr Warmth rating of Robert Kennedy, Jr. ft_roy_cooper Warmth rating of Roy Cooper ft_rural_americans Warmth rating of rural Americans ft_sen_dem_cand Warmth rating of Democratic Senate candidate ft_sen_rep_cand Warmth rating of Republican Senate candidate ft_trans_people Warmth rating of transgender people ft_trump_post Warmth rating of Donald Trump after the election ft_trump_pre Warmth rating of Donald Trump before the election ft_us_house_cand Warmth rating of US House candidate that respondent voted for ft_us_supreme_court Warmth rating of US Supreme Court ft_vance_post Warmth rating of J.D. Vance after the election ft_vance_pre Warmth rating of J.D. Vance before the election ft_walz_post Warmth rating of Tim Walz after the election ft_walz_pre Warmth rating of Tim Walz before the election ft_white_people Warmth rating of White people gay_lsbn_cpls_allwd Should gay/lesbian couples be allowed to adopt children or not gender_s_gender What is respondent's gender? gender_s_sex What is respondent's sex? gndr_cnsdr_thmslf_be Does respondent consider themself to be transgender gndr_role_women_c Do women complaining about discrimination cause more problems gndr_role_women_seek Do women demanding equality seek special favors gndr_scale_fmnnty respondent femininity scale gndr_scale_msclnty respondent masculinity scale gndr_sxl_ornttn Sexual orientation of respondent good_job_house_dist How good a job does House incumbent do in district govt_4yr_perf Government performance over the last four years govt_actn_rsng Government action about rising temperatures govt_big_intrsts_all Government run by a few big interests or for benefit of all govt_corrupt_extent How widespread corruption is in government govt_health_care Government responsibility for health care govt_more_less_opd Should government do more/less about opioid drug addiction govt_wsts_tax_money Does government waste much tax money group_inflnc_much How much influence do Hispanics have in US politics group_inflnc_much__2 How much influence do blacks have in US politics group_inflnc_much__3 How much influence do Asians have in US politics group_inflnc_much_us How much influence do whites have in US politics group_treatment Whether some groups receive worse treatment than others gun_ownership_count Number of guns respondent owns harris_trait_cares Kamala Harris trait: really cares harris_trait_energy Kamala Harris trait: energetic harris_trait_honest Kamala Harris trait: honest harris_trait_know Kamala Harris trait: knowledgeable harris_trait_lead Kamala Harris trait: strong leadership has_children Has any children has_daughters Has one or more daughters has_sons Has one or more sons health_health_ins Does respondent have health insurance hispanic_summary Hispanic ethnicity group hlpfl_hrmfl_if_pres Helpful/harmful if president did not have to worry about congress/courts hlth_bnfts_vccntns Health benefits of vaccinations outweigh risks hlth_cncrnd_lsng_ins respondent concerned about losing health insurance hlth_cncrnd_pyng respondent concerned about paying for health care hlth_trbl_cncntrtng Trouble concentrating in past week house_vote_intent Party of respondent's U.S. House vote intention or preference house_vote_party Party of respondent's U.S. House vote house_vote_pref Party of respondent's U.S. House vote or preference household_landline Is there a working HH landline phone hshld_union_mmbr Anyone in HH belong to labor union hunter_laptop_claim Hunter Biden's laptop showed he made deal with Ukrainian and Chinese businesses id_dcmnt_valid_non Does respondent have a valid, non-expired passport id_dcmnt_valid_non_s Does respondent have a valid, non-expired driver's license immgs_gnrlly_good Are immigrants generally good or bad for America's economy immig_crime Belief that immigrants increander, sse crime imp_american_id How important is being American to respondent's identity imp_elect_asian How important that more Asians get elected to political office imp_elect_black_ppl How important that more blacks get elected to political office imp_elect_hispanic How important that more Hispanics get elected to political office imp_elect_lgbt_ppl How important that more LGBT people get elected to political office imp_elect_woman_pres How important that a woman be elected president of the US imp_elect_women How important that more women get elected to political office imp_immgs_adapt_us How important is it for immigrants to adapt to customs/traditions of the US imp_issue_abort How important is the following issue: abortion imp_issue_clim_chng How important is the following issue: climate change imp_issue_cost_lvng How important is the following issue: cost of living imp_issue_crime How important is the following issue: crime imp_issue_gun_policy How important is the following issue: gun policy imp_issue_illgl How important is the following issue: illegal immigration imp_issue_pblc_schls How important is the following issue: what is taught in public schools imp_issue_rcl_ineq How important is the following issue: racial inequality imp_issue_us_dmcrcy How important is the following issue: US democracy imp_issue_war_gaza How important is the following issue: War in Gaza imp_urban_rural_id How important is urban or rural to respondent's identity imp_white_id How important is being white to respondent's identity incrs_dcrs_govt_help Increase/decrease government spending to help pay for health care incrsng_dvrsty_made Increasing diversity made US better/worse place to live internet_at_home Does respondent use Internet at home interview_status Pre/Post Interview Completion Status intrvw_cntxt_stsfd How satisfied is respondent with life it_be_good_scty_more Would it be good for society to have more or less government regulation jan6_pro_trump Events on January 6, 2021 were carried out by pro-Trump protestors or FBI agents job_satisfaction How satisfied or dissatisfied is respondent with current job? laid_off_last_6 Working now: out of work or laid off in last 6 months legit_win_2020 Who was the legitimate winner of the 2020 presidential election legit_win_2024 Was Trump or Harris the legitimate winner of the 2024 presidential election less_or_more_govt Less or more government life_exprnc_ever Life experience: has respondent ever been bitten by a shark life_exprnc_gone_y Life experience: has respondent gone hunting or fishing in past year life_exprnc_know_smn Life experience: does respondent know someone moved to US from another country life_exprnc_used_pas Life experience: has respondent used public transportation in past year like_dem_cand Like-dislike rating of the Democratic presidential candidate like_dem_party Like-dislike rating of the Democratic Party like_rep_cand Like-dislike rating of the Republican presidential candidate like_rep_party Like-dislike rating of the Republican Party likely_r_vote How likely respondent is to vote lnkd_fate_white_ppl White respondent: what happens to white people will affect respondent's life lr_dem_party Left-right placement of the Democratic Party lr_rep_party Left-right placement of the Republican Party lr_self Respondent's left-right self-placement many_days_past_week How many days in past week discussed politics with family or friends men_econ_crisis Whether men or women are better suited to handle an economic crisis men_pandemic_lead Whether men or women are better suited to handle a pandemic mode_post Interview mode after the election mode_pre Interview mode before the election mrlty_blf_fewer_if Fewer problems if there was more emphasis on traditional family values mrlty_blf_world_we The world is changing & we should adjust view of moral behavior mrtl_stts_5_ctgry Marital status (5 category) much_dscrm_faced_bcs How much discrimination has respondent faced personally because or race/ethnicity much_lrgr_incm_gap How much larger is income gap today much_pol_dffrncs How much have political differences hurt relationships w/family much_pol_vlnc_inc How much has political violence increased/decreased compared to 4 yrs ago natid_born_us Importance of being born in the United States for national identity natid_speak_english Importance of speaking English for national identity natl_econ_bttr_worse National economy better or worse in last year news_newspaper Frequency of reading newspapers news_online Frequency of visiting online news sites news_private_tv Frequency of watching news on private television news_public_tv Frequency of watching news on public television news_radio Frequency of listening to news on radio news_social_media Frequency of using social media for news often_bght_bycttd How often bought or boycotted product/service for social/political reasons often_plc_offcrs_use How often do police officers use more force than necessary often_votes_cntd How often are votes counted fairly party_better_crime Which party would do a better job handling: crime party_better_economy Which party better: handling nations economy party_control Preference for one-party or split-party government party_id Party ID partyid3 Party ID, 3 categories past_12_mnths_attnd Has respondent in past 12 months: attend mtg about issue facing community/schools past_12_mnths_cntctd Has respondent in past 12 months: contacted federal elected official past_12_mnths_done Has respondent in past 12 months: done any volunteer work past_12_mnths_given Has respondent in past 12 months: given money to other organization past_12_mnths_gttn Has respondent in past 12 months: gotten into a political argument with someone past_12_mnths_jnd Has respondent in past 12 months: joined a protest march, rally, or demonstration past_12_mnths_pstd Has respondent in past 12 months: posted comment online about political issue past_12_mnths_sign Has respondent in past 12 months: sign internet or paper petition plc_exprnc_drng_past During past 12 months, respondent or any family members stopped by police plc_exprnc_ever_been Has respondent ever been arrested plc_treat_black_bttr Police treat blacks or whites better pol_attention Attention to politics and elections pol_interest Interest in politics pol_know_many_years How many years in full term for US Senator pol_know_prgrm_fed On which program does Federal government spend the least pol_know_pty_most Party with most members in Senate before election pol_know_pty_most_e Party with most members in House before election ppl_rural_areas_ge_2 People in rural areas get too much/too little respect ppl_rural_areas_get People in rural areas get more/less from government ppl_rural_areas_too People in rural areas have too much/too little influence pres_covid_perf president's handling of COVID pres_primary_vote Whether respondent voted in a presidential primary or caucus pres_two_way_vote Choice if presidential election were only Harris and Trump pres_vote_2016_rcll Recall of 2016 presidential vote choice pres_vote_2024 presidential vote in 2024 pres_vote_intent Whether respondent intended to vote for president pres_vote_intnt_chc For whom does respondent intend to vote for president pres_vote_party Party of respondent's presidential vote intention or preference pres_vote_pref presidential vote or preference pres_vote_strength Strength of presidential vote preference prfr_gov_offcl_stcks Prefer government official who compromises/sticks to principles pty_better_abort Which party would do a better job handling: abortion pty_better_env Which party better: handling environment pty_better_immig Which party better: handling immigration pty_bttr_clim_chng Which party would do a better job handling: climate change pty_bttr_cost_lvng Which party would do a better job handling: cost of living pty_bttr_illgl_immig Which party would do a better job handling: illegal immigration pty_bttr_tght_pblc Which party would do a better job handling: what is taught in public schools pty_contact_r_camp Which party contact respondent about campaign pty_id_imp Party identity importance r_5_ctgry_level_educ Respondent 5 Category level of education r_age_election_day Respondent age on Election Day r_favor_opps_affrmtv Does respondent favor/oppose affirmative action in universities r_favor_opps_death respondent favor/oppose death penalty r_occptn_stts_1 respondent occupation status 1 digit r_rgstr_vote_first When did respondent register to vote for the first time r_self_idntfd_race respondent self-identified race/ethnicity r_side_more_isrls Does respondent side more with Israelis or Palestinians r_sps_prtnr_5_ctgry Respondent spouse/partner 5 Category level of education r_sps_prtnr_race respondent spouse or partner race/ethnicity r_think_they_get Does respondent think they get more or less than their fair share in life r_usually_vote How does respondent usually vote r_voted_2024_elctn When respondent voted in 2024 election r_voted_2024_elctn_2 How respondent voted in 2024 election race_atttd_often How often does respondent have concerned feelings for other racial/ethnic groups race_atttd_often_2 How often respondent imagines how they would feel before criticizing other groups race_atttd_often_smn How often respondent feels protective of someone due to race or ethnicity race_atttd_often_try How often does respondent try to understand perspective of other racial/ethnic groups rcll_2020_pres_vote Recall of last (2020) presidential vote recall_chief_jus Consolidated office-recall score for U.S. Supreme Court Chief Justice Roberts. recall_fr_pres Consolidated office-recall score for French president Emmanuel Macron. recall_ru_pres Consolidated office-recall score for Russian president Vladimir Putin. recall_sen_lead Consolidated office-recall score for Senate Majority Leader Schumer. recall_speaker Consolidated office-recall score for Speaker of the House Johnson. referendums_decide Whether citizen referendums should make political decisions reg_pty_reg_state Party registration in state of registration (pre nonvoter) registered_voter Whether respondent is registered to vote registration_state Voter registration status religion_detail Detailed religious tradition religion_major_grp Major religious tradition rep_party_dislike Whether respondent dislikes anything about the Republican Party rep_party_like Whether respondent likes anything about the Republican Party rqr_emplyrs_offer Require employers to offer paid leave to parents of new children sample_census_region SAMPLE: Census region sample_type Sample Type scale_abort_dem_pres Position on abortion: Democratic presidential candidate scale_abort_rep_pres Position on abortion: Republican presidential candidate scale_aid_black_dem Position on government assistance to blacks scale: Democratic presidential candidate scale_aid_black_rep Position on government assistance to blacks scale: Republican presidential candidate scale_aid_black_self Position on government assistance to blacks scale: self-placement scale_defense_self Position on defense spending: self-placement scale_dfns_dem_pres Position on defense spending: Democratic presidential candidate scale_dfns_rep_pres Position on defense spending: Republican presidential candidate scale_env_bsnss_dem Position on environment-business tradeoff: Democratic presidential candidate scale_env_bsnss_rep Position on environment-business tradeoff: Republican presidential candidate scale_env_bsnss_self Position on environment-business tradeoff: self-placement scale_hlth_ins_dem Position on government-private medical insurance scale: Democratic presidential candidate scale_hlth_ins_rep Position on government-private medical insurance scale: Republican presidential candidate scale_hlth_ins_self Position on government-private medical insurance scale: self-placement scale_jobs_incm_dem Position on guaranteed job-income scale: Democratic presidential candidate scale_jobs_incm_rep Position on guaranteed job-income scale: Republican presidential candidate scale_jobs_incm_self Position on guaranteed job-income scale: self-placement scale_lbcn_dem_house Position on liberal-conservative: Democratic House candidate scale_lbcn_dem_pres Position on liberal-conservative: Democratic presidential candidate scale_lbcn_rep_house Position on liberal-conservative: Republican House candidate scale_lbcn_rep_pres Position on liberal-conservative: Republican presidential candidate scale_libcon_dem_pty Position on liberal-conservative: Democratic party scale_libcon_rep_pty Position on liberal-conservative: Republican party scale_libcon_self Position on liberal-conservative self-placement scale_services_self Position on spending & services: self-placement scale_svc_dem_pres Position on spending & services: Democratic presidential candidate scale_svc_rep_pres Position on spending & services: Republican presidential candidate self_cnsr_need_be Need to be more sensitive talking or people too easily offended self_cnsr_often_self How often does respondent self censor senate_vote_intent Party of respondent's U.S. Senate vote intention or preference shld_mnmm_wage_be Should the minimum wage be raised, kept the same, or lowered smpl_smpl_lctn_state SAMPLE: Sample location state postal abbreviation soc_class_dscrb_soc How would respondent describe social class [EGSS] soc_med_use_often How often use Facebook soc_med_use_often_2 How often post political content on Facebook socmed_facebook Which social media platforms respondent visited - Facebook [mention] socmed_instagram Which social media platforms respondent visited - Instagram [mention] socmed_other Which social media platforms respondent visited - Other [mention] socmed_plat_sum Number of social media platforms visited. socmed_reddit Which social media platforms respondent visited - Reddit [mention] socmed_snapchat Which social media platforms respondent visited - SnapChat [mention] socmed_tiktok Which social media platforms respondent visited - TikTok [mention] socmed_twitter Which social media platforms respondent visited - Twitter [mention] socmed_youtube Which social media platforms respondent visited - YouTube [mention] split_ticket_vote Whether respondent votes a straight or split ticket sps_prtnr_gndr respondent spouse/partner gender stereo_black_violent Stereotype: Blacks violent stereo_white_violent Stereotype: Whites violent str_asian_amrcns Stereotype: Asian-Americans hardworking str_asian_amrcns_2 Stereotype: Asian-Americans violent str_black_hrdwrkng Stereotype: Blacks hardworking str_hspnc_hrdwrkng Stereotype: Hispanics hardworking str_hspnc_vlnt Stereotype: Hispanics violent str_white_hrdwrkng Stereotype: Whites hardworking strong_leader_good Whether having a strong leader in government is good talk_frnds_fmly_live Does respondent talk to friends/family who live in other countries about events in that country threat_china How much is China a threat to the United States threat_iran How much is Iran a threat to the United States threat_israel How much is Israel a threat to the United States threat_japan How much is Japan a threat to the United States threat_mexico How much is Mexico a threat to the United States threat_russia How much is Russia a threat to the United States total_hshld_incm Total (household) income total_hshld_incm_2 Total (household) income [six category] trans_sports_ban Support for banning transgender girls from girls' sports trump_courts_fair Have the courts treated Donald Trump fairly or unfairly trump_courts_fair2 Courts treated Donald Trump fairly/unfairly trump_jury_verdict Manhattan jury that found Trump guilty made right/wrong decision trump_russia_claim Donald Trump's campaign colluded with Russian government in 2016 trump_trait_cares Donald Trump trait: really cares trump_trait_energy Donald Trump trait: energetic trump_trait_honest Donald Trump trait: honest trump_trait_know Donald Trump trait: knowledgeable trump_trait_lead Donald Trump trait: strong leadership trust_congress Trust in Congress trust_courts How often can you trust the court system to do what is right trust_effccy_no_say Have no say about what government does trust_effccy_pblc_t Public officials don't care what people think trust_effccy_pol_too Politics/government too complicated to understand trust_effccy_well How well does respondent understand important political issues trust_federal_govt How often trust government in Washington to do what is right trust_govt Trust in government trust_judiciary Trust in the judiciary trust_news_media Trust and confidence in the news media trust_parties Trust in political parties trust_people How often can people be trusted trust_scientists Trust in scientists trust_soc_media Trust in social media trust_trad_media Trust in traditional media understands_issues Agreement that respondent understands important political issues unmplymnt_bttr_worse Unemployment better or worse in last year unmplymnt_next_year More or less unemployment in next year urban_unrest_force Preferred response to urban unrest us_bttr_worse_than US better or worse than most other countries us_democracy_scale Rating of how democratic the United States is uslly_think_self_as Does respondent usually think of self as a rural or urban person vccn_conf_vccns_au How confident is respondent about that (vaccines cause autism) vccn_most_scntfc_cau Does most scientific evidence show vaccines cause autism or not vote_as_duty_choice Voting as duty or choice vote_makes_diff Whether who people vote for makes a difference vote_prob_abs Did respondent encounter any problems voting - difficulty obtaining absentee ballot vote_prob_ballot Did respondent encounter any problems voting - confusion about ballot or machine vote_prob_id Did respondent encounter any problems voting - concern about identification card vote_prob_mail Did respondent encounter any problems voting - issue mailing ballot vote_prob_no_try Did respondent encounter any problems voting - respondent didn't try to vote vote_prob_none Did respondent encounter any problems voting - none at all vote_prob_other Did respondent encounter any problems voting - other problem vote_prob_reg Did respondent encounter any problems voting - registration problem vote_prob_sum Number of voting problems reported. vote_prob_transp Did respondent encounter any problems voting - difficulty getting to polling place vote_prob_wait Did respondent encounter any problems voting - long wait times vote_prob_weather Did respondent encounter any problems voting - bad weather vote_prob_work Did respondent encounter any problems voting - work schedule vote_satisfaction Satisfaction with how people voted in the election voted_early Whether respondent had already voted early voted_president_2016 Did respondent vote for president in 2016 election voter_turnout Voter turnout in 2024 women_blf_agree_dsgr Agree/disagree - women interpret innocent remarks as sexist women_blf_women_seek Women seek to gain power by getting control over men women_congress_share Whether the share of women in Congress is too high or too low women_rep_policy Support for policies to increase women's representation work_hours_pay_cut Working now: had reduction in work hrs or pay cut work_hrssmnt_exprncd Has respondent experienced harassment at work world_tmprtr_conf_t How confident is respondent about that (world temperatures have risen) world_tmprtr_world Have world temperatures have risen on average or last 100 years or not worried_losing_job Working now: worry about losing job in near future wt Analysis weight for the pre-election survey wt_post Analysis weight for the post-election survey _<08>S_<08>o_<08>u_<08>r_<08>c_<08>e: American National Election Studies. 2024 Time Series Study Full Release. Note: region was analyzed as an unordered factor. If its categories have a meaningful order, create an ordered version with ordered(region, levels=...) before calling describeC(). [ FAIL 3 | WARN 0 | SKIP 0 | PASS 404 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-getC.R:41:3'): getC imports SAS transport extensions ───────── Expected `quiet_run(getC(xpt_file, confirm = FALSE))` to equal `source_data`. Differences: `attr(actual$id, 'haven_meta')` is an S7 object of class <haven::meta_var_sas> `attr(expected$id, 'haven_meta')` is absent `attr(actual$value, 'haven_meta')` is an S7 object of class <haven::meta_var_sas> `attr(expected$value, 'haven_meta')` is absent ── Failure ('test-getC.R:42:3'): getC imports SAS transport extensions ───────── Expected `quiet_run(getC(xport_file, confirm = FALSE))` to equal `source_data`. Differences: `attr(actual$id, 'haven_meta')` is an S7 object of class <haven::meta_var_sas> `attr(expected$id, 'haven_meta')` is absent `attr(actual$value, 'haven_meta')` is an S7 object of class <haven::meta_var_sas> `attr(expected$value, 'haven_meta')` is absent ── Failure ('test-getC.R:51:3'): getC imports SAS data files ─────────────────── Expected `quiet_run(getC(sas_file, confirm = FALSE))` to equal `source_data`. Differences: `attr(actual$id, 'haven_meta')` is an S7 object of class <haven::meta_var_sas> `attr(expected$id, 'haven_meta')` is absent `attr(actual$value, 'haven_meta')` is an S7 object of class <haven::meta_var_sas> `attr(expected$value, 'haven_meta')` is absent [ FAIL 3 | WARN 0 | SKIP 0 | PASS 404 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-fedora-gcc