lazy.stat {lazy.stat} R Documentation

## lazy.stat: Collection of useful statistical tools for lazy boys and girls

### Description

This package provides the following categories of functions:

### Spline Functions

• bs: Generate B Spline Basis

• find_best_sp: Find the Best Subset of Spline Regression
This uses "regsubsets" function of "leaps" package.

• predict_sp: Predicting from Spline Regression

• ps: Generate Piecewise Spline Basis

• spline_expand: Generate Spline Basis

• spreg: Spline Regression Analysis: Regress y on spline expanded univariate regressor variable x
Monotone Spline is available here.

• data0019rt Proportion of those who are under 19 years old.

• data2029rt Proportion of those who are in their 20s..

• data3039rt Proportion of those who are in their 30s.

• data4049rt Proportion of those who are in their 40s.

• data5059rt Proportion of those who are in their 50s.

• data6099rt Proportion of those who are over 60 years old.

### Regression Functions

• nnreg: Non-negative or Ordered Regression

• mlsreg: (Weighted) Monotone Least Squares Regression of y on x

• mbinreg: Monotone Binary Regression of (f, n) on x

### Distribution Functions

• dst, pst,: Univariate t distribution with location and scale parameters.

• lcDmc, dlcDmc, plcDmc, qlcDmc: Distribution of the linear combination of a Dirichlet variable

### Random Number Functions

• rbin: Binomial Random Numbers

• rchi2: Chi Squared Random Numbers

• rdirichlet: Dirichlet Random Numbers

• rinvchi: Inverted Chi Random Numbers

• rinvchi2: Inverted Chi Squared Random Numbers

• rmvnorm: Multivariate Normal Random Numbers

• rst: t Random Numbers

• rlcDmc: Linear Combination of Dirichlet Component Random Numbers

### Utility Functions

• inv_func: Inverse function

• cdf2pf: Calculates normalized pdf from cdf (Beta Version)

• pf2pf: Calculates normalized pdf from pdf (Beta Version)

[Package lazy.stat version 0.1.3 Index]