Package index
Employment Consolidation
Functions for consolidating overlapping, adjacent, and gapped employment periods.
-
consolidate_overlapping() - Consolidate Overlapping Employment Periods
-
consolidate_adjacent() - Consolidate Adjacent Employment Periods
-
consolidate_short_gaps() - Consolidate Employment Periods with Short Gaps
-
consolidate_by_employer() - Consolidate Employment Periods by Employer
-
consolidate_employer_gaps() - Consolidate Employment Periods by Employer and Short Gaps (Combined)
-
mark_employer_consolidation() - Mark Records for Employer Consolidation (Lightweight)
-
summarize_consolidation() - Summarize Consolidation Metrics
-
extract_consolidation_metrics() - Extract Consolidation Metrics from Employment Transition Analysis
-
analyze_consolidated_periods() - Analyze Consolidated Employment Periods Using over_id
-
analyze_employment_transitions() - Analyze Employment Transitions from Pipeline Output
-
analyze_employment_transitions_with_metrics() - Analyze Employment Transitions with Consolidation Metrics
-
analyze_employment_overlaps() - Analyze Employment Overlaps Using over_id
-
analyze_transitions_network() - Analyze Network Structure from Transitions Data
-
create_consolidated_transition_matrix() - Create Consolidated Transition Matrix Using over_id
-
create_monthly_transition_matrices() - Create Monthly Transition Matrices from Vecshift Data with Advanced Memory Management
-
create_monthly_transition_matrices_optimized() - Create Monthly Transition Matrices - Optimized Version (Vectorized)
-
calculate_career_complexity_metrics() - Calculate Career Complexity Metrics for General Career Analysis
-
calculate_career_stability_metrics() - Calculate Career Stability Metrics for General Career Analysis
-
calculate_career_success_metrics() - Calculate Career Success Metrics Combining Quality and Stability (Optimized)
-
calculate_career_transition_metrics() - Calculate Career Transition Metrics with Duration and Salary Analysis
-
calculate_comprehensive_career_metrics() - Comprehensive Career Metrics Analysis
-
calculate_contract_quality_metrics() - Calculate Contract Quality Metrics
-
calculate_employment_stability_metrics() - Calculate Employment Stability Metrics
-
calculate_transition_pattern_metrics() - Calculate Transition Pattern Metrics
-
calculate_comprehensive_impact_metrics() - Comprehensive Impact Metrics Calculation
-
calculate_impact_career_complexity_metrics() - Calculate Career Complexity Metrics
-
cluster_career_trajectories() - Cluster Career Trajectories into Meaningful Segments
-
plot_cluster_profiles() - Visualize Career Cluster Profiles
-
plot_employment_complexity() - Plot Employment Complexity Using over_id
Trajectory Tracking
Track employment trajectories across contracts, employers, professions, and sectors.
-
track_contract_trajectories() - Track Contract Trajectories
-
track_employer_trajectories() - Track Employer Trajectories
-
track_professional_trajectories() - Track Professional Trajectories
-
track_professional_group_trajectories() - Track professional group trajectories over time
-
track_sector_trajectories() - Track Sector Trajectories
-
estimate_contract_survival() - Estimate Contract Survival Curves
-
estimate_contract_survival_optimized() - Optimized Contract Survival Estimation
-
compare_contract_survival() - Compare Survival Curves Across Contract Types
-
add_contract_survival_metrics() - Add Contract Survival Metrics to Employment Data
-
add_all_survival_metrics_optimized() - Add All Survival Metrics Using Optimized Vectorized Operations
-
add_survival_probabilities() - Add Survival Probabilities to Data
-
calculate_median_survival_probability() - Calculate Median Survival Probability (DEPRECATED)
-
export_survival_results() - Export Survival Analysis Results
-
visualize_contract_survival() - Visualize Contract Survival Curves
-
difference_in_differences() - Difference-in-Differences Estimation
-
propensity_score_matching() - Propensity Score Matching for Impact Evaluation (Person-Level Matching)
-
regression_discontinuity() - Main Regression Discontinuity Design Estimation
-
synthetic_control_method() - Synthetic Control Method Wrapper
-
event_study_design() - Event Study Design
-
coarsened_exact_matching() - Coarsened Exact Matching (CEM) with Person-Level Matching
-
create_treatment_control_groups() - Create Treatment and Control Groups
-
identify_treatment_events() - Identify Treatment Groups for Impact Evaluation
-
aggregate_treatment_effects() - Treatment Effect Aggregation
-
assess_balance() - Balance Assessment for Matched Data
-
assess_match_quality() - Match Quality Diagnostics
-
assess_treatment_event_quality() - Assess Treatment Event Quality
-
diagnose_matching_data() - Data Quality Diagnostics for Propensity Score Matching
-
prepare_metrics_for_impact_analysis() - Prepare Metrics Output for Impact Analysis
-
rdd_robustness_checks() - RDD Robustness Checks
-
rdd_placebo_tests() - RDD Placebo Tests and Density Tests
-
export_impact_results() - Export Impact Evaluation Results in Multiple Formats
-
generate_impact_report() - Generate Comprehensive Impact Evaluation Report
-
create_impact_summary_table() - Create Publication-Ready Impact Summary Tables
-
plot_transitions_network() - Plot Employment Transitions Network
-
plot_transitions_hierarchical() - Plot Employment Transitions - Hierarchical Layout
-
plot_transitions_heatmap() - Plot Employment Transitions Heatmap
-
plot_transitions_circular() - Plot Employment Transitions - Circular Layout
-
plot_transitions_over_time() - Create Time-Based Animated Employment Transitions
-
plot_transition_flows() - Plot Employment Transition Flows
-
plot_overlap_patterns() - Plot Overlapping Employment Patterns
-
plot_interactive_transitions() - Create Interactive Employment Transition Visualization
-
convert_transitions_to_g6r() - Convert Employment Transitions to g6r Format
-
generate_g6r_demo_data() - Employment Transitions g6r Examples and Tutorials
-
interactive_transitions_module() - Create Shiny Module for Interactive Employment Transitions
-
create_enhanced_transitions_dashboard() - Create Enhanced Employment Transitions Dashboard with Consolidation
-
plot_survival_comparison() - Compare Survival Curves Visually
-
plot_survival_heatmap() - Create Survival Heatmap by Contract Type
-
plot_median_survival_forest() - Create Forest Plot of Median Survival Times
-
animate_survival_curves() - Create Animated Survival Curves
-
create_risk_table() - Create Risk Table for Survival Plot
-
plot_did_results() - Plot Difference-in-Differences Results
-
plot_event_study() - Plot Event Study Results
-
plot_impact_summary() - Plot Impact Evaluation Summary
-
plot_balance_assessment() - Plot Covariate Balance Assessment
-
plot_synthetic_control() - Plot Synthetic Control Results
-
plot_treatment_control_comparison() - Plot Treatment vs Control Group Comparisons
-
rdd_plot() - RDD Visualization
-
plot_employment_gantt() - Plot Employment Gantt Chart
-
plot_employment_gantt_advanced() - Plot Advanced Employment Gantt Chart with Career Metrics Summary
-
plot_employment_timeline() - Plot Employment Timeline
-
plot_employment_heatmap() - Plot Employment Heatmap
-
plot_employment_distribution() - Plot Employment Status Distribution
-
plot_employment_summary() - Plot Employment Summary Dashboard
-
plot_integrated_employment_metrics() - Integrated Employment Timeline and Career Metrics Visualization
-
plot_duration_analysis() - Plot Duration Analysis
-
plot_over_id_distribution() - Plot over_id Distribution Analysis
-
plot_consolidation_comparison() - Compare Raw vs Consolidated Transitions
-
quick_employment_viz() - Quick Employment Data Visualization
-
compare_transitions_between_groups() - Compare Employment Transitions Between Groups
-
theme_vecshift() - Vecshift ggplot2 Theme
-
set_vecshift_theme() - Set Vecshift as Default ggplot2 Theme
-
reset_default_theme() - Reset to Default ggplot2 Theme
-
scale_color_vecshift()scale_colour_vecshift()scale_fill_vecshift() - Vecshift Color Scale for ggplot2
-
scale_fill_vecshift_bw() - Black and White Fill Scale with Pattern Support
-
scale_linetype_vecshift() - Line Type Scale for Vecshift Visualizations
-
vecshift_colors() - Get Vecshift Color Palette
-
vecshift_patterns() - Get Vecshift Pattern Specifications
-
vecshift_linetypes() - Get Line Type Patterns for Time Series
-
get_employment_colors() - Get Employment-Specific Colors
-
preview_vecshift_colors() - Preview Vecshift Color Palette
-
preview_bw_patterns() - Preview Pattern and Color Combinations
-
compute_temporal_employment_indicators() - Compute Temporal Employment Indicators from vecshift Data
-
create_temporal_indicators_summary() - Create Temporal Indicators Summary for Multiple Groups
-
add_cpi_to_data() - Add CPI information to a data.table
-
add_cpi_via_belfiore() - Add CPI via Belfiore codes
-
load_belfiore_mapping() - Load Belfiore to ISTAT mapping
-
create_comune_cpi_lookup() - Create comune to CPI lookup table
-
generate_comune_cpi_lookup() - Generate and save comune-CPI lookup table
-
sample - Sample Employment Data
-
create_sample_employment_data() - Create Sample Employment Data for Visualization Testing
-
generate_synthetic_employment_data() - Generate Synthetic Employment Data
-
validate_synthetic_data() - Validate Synthetic Data Quality
-
synthetic_sample - Synthetic Sample Employment Data with Policy Events
-
.check_g6r() - Interactive Employment Transitions with g6r
-
test_g6r_accessibility() - Test g6r Accessibility Features
-
test_vecshift_accessibility() - Test Color Accessibility
-
create_accessibility_report() - Create Accessibility Report for Network Visualizations
-
calculate_career_success_index_for_impact() - Calculate Career Success Index for Impact Analysis
-
calculate_employer_trajectories_vectorized() - Vectorized employer trajectory calculation helper function
-
calculate_l1_imbalance() - Calculate L1 Imbalance Measure
-
calculate_professional_group_trajectories_vectorized() - Calculate professional group trajectories vectorized (internal helper function)
-
calculate_professional_trajectories_vectorized() - Vectorized professional trajectory calculation helper function
-
calculate_sector_trajectories_vectorized() - Vectorized sector trajectory calculation helper function
-
calculate_trajectories_vectorized() - Vectorized trajectory calculation helper function
-
calculate_unified_career_metrics_optimized() - Ultra-Optimized Unified Career Metrics Calculation (Internal)
-
cem_fallback_implementation() - Fallback CEM Implementation (native R, no dependencies) with Person-Level Matching
-
cem_native_implementation() - Native CEM Implementation (using CEM package) with Person-Level Matching
-
consolidation_helpers - Consolidation Helper Functions
-
consolidation_metrics - Consolidation Metrics Functions for longworkR Package
-
.add_circular_titles() - Add Circular Plot Titles
-
.add_consolidation_info() - Add Consolidation Information to tidygraph
-
.add_edges() - Add Network Edges with Styling
-
.add_edges_with_consolidation() - Add Edges with Consolidation Styling
-
.add_heatmap_color_scale() - Add Heatmap Color Scale
-
.add_heatmap_titles() - Add Heatmap Titles
-
.add_hierarchical_edges() - Add Hierarchical Edges
-
.add_hierarchical_labels() - Add Hierarchical Labels
-
.add_hierarchical_metrics() - Add Hierarchical Metrics to Graph
-
.add_hierarchical_nodes() - Add Hierarchical Nodes
-
.add_hierarchical_titles() - Add Hierarchical Plot Titles
-
.add_labels() - Add Network Labels
-
.add_level_backgrounds() - Add Level Backgrounds to Hierarchical Plots
-
.add_network_metrics() - Add Network Metrics to tidygraph Object
-
.add_network_titles() - Add Network Titles and Subtitles
-
.add_nodes() - Add Network Nodes with Styling
-
.analyze_temporal_consolidation() - Analyze temporal consolidation patterns using over_id
-
.apply_circular_ordering() - Apply Circular Node Ordering
-
.apply_circular_theme() - Apply Circular Theme
-
.apply_employer_consolidation_simple() - Simple employer consolidation for metrics calculation
-
.apply_hierarchical_theme() - Apply Hierarchical Theme
-
.apply_network_theme() - Apply Network Theme Styling
-
.apply_temporal_consolidation_simple() - Simple temporal consolidation for metrics calculation
-
.assess_color_contrast() - Assess Color Contrast Ratios
-
.assess_consolidation_benefits() - Assess Consolidation Benefits
-
.assess_layout_complexity() - Assess Layout Complexity for Readability
-
.calculate_memory_aware_limit() - Calculate Memory-Aware Sample Size Limit (Internal)
-
.calculate_mode_optimized() - Calculate Mode Using Optimized data.table Operations
-
.calculate_weighted_median_optimized() - Calculate Weighted Median Using Optimized Algorithm
-
.characterize_clusters() - Characterize Clusters and Generate Bilingual Labels (Internal)
-
.check_g6r() - Interactive Employment Transitions with g6r
-
.check_ggraph_packages() - Check Required Packages for ggraph Functions
-
.compute_calinski_harabasz() - Compute Calinski-Harabasz Index (Internal)
-
.compute_cluster_quality() - Compute Cluster Quality Metrics (Internal)
-
.compute_contract_quality() - Compute Contract Quality Indicators for Temporal Periods
-
.compute_distance_to_centroid() - Compute Distance to Cluster Centroid (Internal)
-
.compute_dunn_index() - Compute Dunn Index (Internal)
-
.compute_employment_rate() - Compute Employment Rate for Temporal Periods
-
.compute_feature_importance() - Compute Feature Importance for Clustering (Internal)
-
.convert_to_matrix() - Convert Data to Matrix Format
-
.convert_to_tidygraph() - Convert Transitions Data to tidygraph Object
-
.convert_types_optimized() - Convert Integer Columns to Numeric (Optimized)
-
.create_academic_template() - Create Academic Template Content
-
.create_arc_diagram() - Create Arc Diagram
-
.create_bar_plot() - Create Grouped Bar Chart for Cluster Profiles (Internal)
-
.create_baseline_metrics() - Create baseline metrics for no consolidation case
-
.create_chord_diagram() - Create Chord Diagram
-
.create_complexity_network_data() - Create Complexity Network Data
-
.create_consolidation_comparison_plot() - Create Consolidation Comparison Plot
-
.create_density_plot() - Create Density Plot
-
.create_empty_heatmap_plot() - Create Empty Heatmap Plot for Error Cases
-
.create_empty_network_plot() - Create Empty Network Plot for Error Cases
-
.create_empty_statistics_result() - Create Empty Statistics Result Structure
-
.create_executive_template() - Create Executive Template Content
-
.create_heatmap_plot() - Create Heatmap for Cluster Profiles (Internal)
-
.create_main_rdd_plot() - Create Main RDD Plot
-
.create_over_id_boxplot() - Create over_id Boxplot
-
.create_over_id_density() - Create over_id Density Plot
-
.create_over_id_histogram() - Create over_id Histogram
-
.create_over_id_summary_plot() - Create over_id Summary Plot
-
.create_period_ranges() - Helper function to create date ranges for temporal periods OPTIMIZED: Fully vectorized period range calculation for maximum performance
-
.create_policy_template() - Create Policy Template Content
-
.create_radar_plot() - Create Radar/Spider Chart for Cluster Profiles (Internal)
-
.create_rmd_template() - Create R Markdown Template
-
.create_technical_template() - Create Technical Template Content
-
.create_wheel_diagram() - Create Wheel Diagram
-
.determine_optimal_clusters() - Determine Optimal Number of Clusters (Hybrid Approach)
-
.elbow_method() - Elbow Method for Optimal k Selection
-
.estimate_fuzzy_rdd() - Estimate Fuzzy RDD
-
.estimate_sharp_rdd() - Estimate Sharp RDD
-
.export_plots() - Export Plots
-
.export_to_csv() - Export to CSV Format
-
.export_to_json() - Export to JSON Format
-
.export_to_xlsx() - Export to Excel Format
-
.extend_color_palette() - Extend Color Palette for Large Numbers of Categories
-
.format_balance_table() - Format Balance Table
-
.format_descriptive_table() - Format Descriptive Statistics Table
-
.format_main_results_table() - Format Main Results Table
-
.format_robustness_table() - Format Robustness Table
-
.generate_cluster_labels() - Generate Bilingual Cluster Labels Based on Characteristics (Internal)
-
.generate_consolidated_data_for_metrics() - Generate consolidated data for metrics when not available from main function
-
.generate_consolidation_recommendations() - Generate consolidation recommendations
-
.get_accessibility_colors() - Get Accessibility-Friendly Color Palettes
-
.get_available_memory_gb() - Get Available (Free) RAM in GB
-
.get_hierarchical_layout_name() - Get Hierarchical Layout Name
-
.get_required_colors_count() - Get Required Number of Colors for Node Color Variable
-
.get_temporal_period() - Helper function to determine temporal period from date
-
.get_text_color() - Get Text Color for Heatmap Cells
-
.is_pipeline_data() - Check if Data is Pipeline Result vs Pre-computed Transitions
-
.matrix_to_long() - Convert Matrix to Long Format for Heatmaps
-
.normalize_matrix() - Normalize Transition Matrix
-
.perform_clustering() - Perform Clustering with Specified Method (Internal)
-
.perform_density_test() - Perform Density Test
-
.prepare_clustering_data() - Prepare Data for Clustering (Internal)
-
.prepare_density_plot_data() - Prepare Density Plot Data
-
.process_with_consolidation() - Process Data with Consolidation
-
.reassign_small_clusters() - Reassign Small Clusters to Nearest Larger Cluster (Internal)
-
.select_clustering_features() - Select Clustering Features Based on Category (Internal)
-
.select_rdd_bandwidth() - Select RDD Bandwidth
-
.stratified_cluster_sample() - Stratified Sampling Preserving Cluster Proportions (Internal)
-
.stratified_sample() - Stratified Sampling to Preserve Variance Structure (Internal)
-
generate_g6r_demo_data() - Employment Transitions g6r Examples and Tutorials
-
get_standardized_employment_colors() - Get Standardized Employment Colors
-
get_survival_at_time() - Helper: Get Survival Probability at Specific Time
-
get_survival_at_time_optimized() - Optimized Helper: Get Survival Probability at Specific Time
-
`%||%` - Null-coalescing Operator
-
impact_rdd - Regression Discontinuity Design Functions
-
load_spatial_maps() - Load comuni and CPI spatial data
-
translate_trajectory_status() - Translate trajectory status labels
-
validate_animation_setup() - Validate Animation Setup
-
validate_integration_setup() - Validate Integration Setup
-
career_clustering - Career Trajectory Clustering and Segmentation
-
career_metrics - Career Evaluation: Generalized Career Trajectory Analysis
-
impact_estimation - Impact Evaluation: Causal Inference Estimation Methods
-
impact_evaluation - Impact Evaluation: Event Identification and Treatment Group Definition
-
impact_matching - Impact Evaluation: Control Group Identification and Matching
-
impact_metrics - Impact Evaluation: Pre/Post Event Metrics
-
impact_reporting - Impact Evaluation: Comprehensive Report Generation
-
impact_visualization - Impact Evaluation: Comprehensive Visualization Functions
-
survival_analysis - Survival Analysis for Contract Types
-
survival_visualization - Visualization Functions for Contract Survival Analysis
-
temporal_indicators - Temporal Employment Indicators: Quarterly and Monthly Employment Analysis
-
ggraph-transitions - Ggraph-Based Network Visualizations for Employment Transitions
-
theme-vecshift - Vecshift Theme System for Accessible Visualization
-
trajectory-analysis - Contract Trajectory Analysis
-
vecshift-plots-extensions - Vecshift Visualization Extensions and Utilities
-
vecshift-plots - Vecshift Visualization Functions for Employment Data Analysis
-
print(<balance_assessment>) - Print method for balance assessment
-
print(<did_results>) - Print method for DiD results
-
print(<longworkR_consolidation_summary>) - Print method for longworkR consolidation summary
-
print(<longworkR_transitions_with_metrics>) - Print method for transitions with metrics
-
print(<matching_diagnostics>) - Print method for data quality diagnostics
-
print(<treatment_event_assessment>) - Print method for treatment event assessment
-
aggregate_to_person_level() - Aggregate Event-Level Data to Person-Level for Matching