knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(MyStatsPackage)
This vignette file was made to describe the functions and data present in the MyStatsPackage project made for MATH 4754
The first function is the myboot2 function that returns a histogram for a chosen statistic, i.e. mean, chi-squared, given x data set, a function to apply to the data and an alpha value to find the conf interval
set.seed(35); y = round(rnorm(30, mean=20, sd=3),3) myboot2(x=y, fun="sd", alpha =0.3)
The FetchCSV function returns a data table using data frame. The specific path of the data set must be known.
df = FetchCSV("C:/Statistics2022/ASS/ASS4/NZBIRDS.csv") df
The myfunddt function returns a graph for the ddt data frame. Specifically, it plots Length vs Weight and adds a quadratic model
ddt = FetchCSV("C:/Statistics2022/Labs/Lab1/DDT-1.csv") myfunddt(df = ddt, Species = "CCATFISH")
myncurve is a function that returns a plot of the normal distribution with the area/probability shaded in and written on the graph. Also lists the area into the command-line.
myncurve(10, 5, 6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.