knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(MATH4753Weng0006)
This package contains some functions that I have learned this semester This vignette presents the 4 functions I have learned this semester
scatterhist is a function that will make scatter histogram
MATH4753Weng0006::scatterhist(ddt$LENGTH,ddt$WEIGHT)
mymult is a function that will make multinomial probability distribution
MATH4753Weng0006::mymult(iter=1000,n=10,p=c(1,2,3,4,2)/12)
mymaxlik is a function that will make maximum likelihood estimates
loggamma=function(x,param) log(dgamma(x,log = FALSE, shape = 2,rate =param )) MATH4753Weng0006::mymaxlik(x=c(9,9,1,9,9,9),param=seq(0,1,length=1000),lfun=loggamma)
myncurve will display the dnorm curve, shaded area between the curve and x axis from negative infinity to x=a,
MATH4753Weng0006::myncurve(5,10,6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.