knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(MATH4753Weng0006)

Introduction

This package contains some functions that I have learned this semester This vignette presents the 4 functions I have learned this semester

First function

scatterhist is a function that will make scatter histogram

MATH4753Weng0006::scatterhist(ddt$LENGTH,ddt$WEIGHT)

Second function

mymult is a function that will make multinomial probability distribution

MATH4753Weng0006::mymult(iter=1000,n=10,p=c(1,2,3,4,2)/12)

Third function

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)

fourth function

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)


NingyuanWeng/my-R-package documentation built on May 3, 2022, 12:04 a.m.