library(BayesianFirstAid)
debugonce(bayes.t.test) # turns off debugging for function after first run
bayes.t.test(co2)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # A method for modifying only select off-diagonal items in a matrix | |
| # From "Thierry" and "Ben Bolker" | |
| # At http://stackoverflow.com/a/11759744/479554 | |
| # A sample matrix | |
| size <- 6 | |
| mat <- matrix(seq_len(size ^ 2), ncol = size) | |
| print(mat) | |
| # A companion matrix that indicates how "off" a diagonal is: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Set a seed | |
| set.seed(500) | |
| library(MASS) | |
| data <- Boston | |
| # Check that no data is missing | |
| apply(data,2,function(x) sum(is.na(x))) | |
| # Train-test random splitting for linear model |
A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .SYNOPSIS | |
| Converts Mermaid diagram code to SVG with a text-based UI | |
| .DESCRIPTION | |
| This PowerShell script provides a menu-driven interface to convert Mermaid diagram code to SVG files | |
| using either the Mermaid CLI (if installed) or the Mermaid Live Editor API. | |
| .PARAMETER OutputPath | |
| Path to save the SVG file (default: current directory) | |
| .EXAMPLE | |
| .\mermaid_to_svg.ps1 |
OlderNewer