Skip to content

[WIP] Add summary method for BayesMallowsSMC2 objects#61

Merged
osorensen merged 2 commits intomainfrom
copilot/create-summary-method
Jan 22, 2026
Merged

[WIP] Add summary method for BayesMallowsSMC2 objects#61
osorensen merged 2 commits intomainfrom
copilot/create-summary-method

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 22, 2026

Plan for Summary Method Implementation

  • Create a summary.BayesMallowsSMC2 function in R/print.R
    • Include all information from print method (particles, timepoints, items, clusters, log marginal likelihood, ESS, resampling events)
    • Add posterior mean of alpha across particles
    • Add posterior standard deviation of alpha across particles
    • Return summary object (S3 class)
  • Create print method for the summary object
  • Update NAMESPACE to export summary method
  • Add tests for the summary method in tests/testthat/test-print.R
  • Build and test the package
Original prompt

This section details on the original issue you should resolve

<issue_title>Create summary method</issue_title>
<issue_description></issue_description>

Comments on the Issue (you are @copilot in this section)

@osorensen Create a summary method for objects of S3 class BayesMallowsSMC2. I think it could be very similar to the print method, but perhaps also contain some information about the posterior mean and standard deviation of alpha?

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: osorensen <21175639+osorensen@users.noreply.github.com>
@osorensen osorensen marked this pull request as ready for review January 22, 2026 09:44
@osorensen osorensen merged commit 3b5ff55 into main Jan 22, 2026
5 checks passed
@osorensen osorensen deleted the copilot/create-summary-method branch January 22, 2026 09:51
Copilot AI requested a review from osorensen January 22, 2026 09:52
Copilot stopped work on behalf of osorensen due to an error January 22, 2026 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create summary method

2 participants