This package was created as a requirement for Homework 9 in Stats 547:

In the package Power, I have several functions including: square, reciprocal, and box-cox transformation. In addition, I have special function in the package such as linking character together.

For example:

  1. If you would like to square some numbers, I have a square function:
library(Powers)
x <- square(10)
x
  1. If you would like to reciprocal some number, I have a reciprocal function:
x <- reciprocal(10)
x
  1. If you would like to transform some numers, I have the box-cox function:

In the case lambda is not 0:

x <- boxcox(10,3)
x

In the case lambda is 0:

x <- boxcox(10,0)
x
  1. The reverse box-cox transformation:

In the case lambda is not 0:

x <- reverse_boxcox(10,3)
x

In the case lambda is 0:

x <- reverse_boxcox(10,0)
x
  1. For special function in this homework, I created the link function:
x <- c("Anh", "Khoa", "Vo")
y <- link(x)
y

Thank you!!!



AnhKhoaVo/HW9-Package- documentation built on May 30, 2019, 3:48 p.m.