mirror of
https://github.com/msberends/AMR.git
synced 2025-07-08 11:11:54 +02:00
kurtosis, skewness, start with ML
This commit is contained in:
@ -66,8 +66,8 @@ For numeric values of any class, these additional values will all be calculated
|
||||
|
||||
For dates and times of any class, these additional values will be calculated with \code{na.rm = TRUE} and shown into the header:
|
||||
\itemize{
|
||||
\item{Oldest, using \code{\link[base]{min}}}
|
||||
\item{Newest, using \code{\link[base]{max}}, with difference between newest and oldest}
|
||||
\item{Oldest, using \code{\link{min}}}
|
||||
\item{Newest, using \code{\link{max}}, with difference between newest and oldest}
|
||||
\item{Median, using \code{\link[stats]{median}}, with percentage since oldest}
|
||||
}
|
||||
|
||||
|
28
man/kurtosis.Rd
Normal file
28
man/kurtosis.Rd
Normal file
@ -0,0 +1,28 @@
|
||||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/kurtosis.R
|
||||
\name{kurtosis}
|
||||
\alias{kurtosis}
|
||||
\alias{kurtosis.default}
|
||||
\alias{kurtosis.matrix}
|
||||
\alias{kurtosis.data.frame}
|
||||
\title{Kurtosis of the sample}
|
||||
\usage{
|
||||
kurtosis(x, na.rm = FALSE)
|
||||
|
||||
\method{kurtosis}{default}(x, na.rm = FALSE)
|
||||
|
||||
\method{kurtosis}{matrix}(x, na.rm = FALSE)
|
||||
|
||||
\method{kurtosis}{data.frame}(x, na.rm = FALSE)
|
||||
}
|
||||
\arguments{
|
||||
\item{x}{a vector of values, a \code{matrix} or a \code{data frame}}
|
||||
|
||||
\item{na.rm}{a logical value indicating whether \code{NA} values should be stripped before the computation proceeds.}
|
||||
}
|
||||
\description{
|
||||
Kurtosis is a measure of the "tailedness" of the probability distribution of a real-valued random variable.
|
||||
}
|
||||
\seealso{
|
||||
\code{\link{skewness}}
|
||||
}
|
@ -29,7 +29,7 @@ x \%like\% pattern
|
||||
A \code{logical} vector
|
||||
}
|
||||
\description{
|
||||
Convenient wrapper around \code{\link[base]{grepl}} to match a pattern: \code{a \%like\% b}. It always returns a \code{logical} vector and is always case-insensitive. Also, \code{pattern} (\code{b}) can be as long as \code{x} (\code{a}) to compare items of each index in both vectors.
|
||||
Convenient wrapper around \code{\link[base]{grep}} to match a pattern: \code{a \%like\% b}. It always returns a \code{logical} vector and is always case-insensitive. Also, \code{pattern} (\code{b}) can be as long as \code{x} (\code{a}) to compare items of each index in both vectors.
|
||||
}
|
||||
\details{
|
||||
Using RStudio? This function can also be inserted from the Addins menu and can have its own Keyboard Shortcut like Ctrl+Shift+L or Cmd+Shift+L (see Tools > Modify Keyboard Shortcuts...).
|
||||
|
30
man/skewness.Rd
Normal file
30
man/skewness.Rd
Normal file
@ -0,0 +1,30 @@
|
||||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/skewness.R
|
||||
\name{skewness}
|
||||
\alias{skewness}
|
||||
\alias{skewness.default}
|
||||
\alias{skewness.matrix}
|
||||
\alias{skewness.data.frame}
|
||||
\title{Skewness of the sample}
|
||||
\usage{
|
||||
skewness(x, na.rm = FALSE)
|
||||
|
||||
\method{skewness}{default}(x, na.rm = FALSE)
|
||||
|
||||
\method{skewness}{matrix}(x, na.rm = FALSE)
|
||||
|
||||
\method{skewness}{data.frame}(x, na.rm = FALSE)
|
||||
}
|
||||
\arguments{
|
||||
\item{x}{a vector of values, a \code{matrix} or a \code{data frame}}
|
||||
|
||||
\item{na.rm}{a logical value indicating whether \code{NA} values should be stripped before the computation proceeds.}
|
||||
}
|
||||
\description{
|
||||
Skewness is a measure of the asymmetry of the probability distribution of a real-valued random variable about its mean.
|
||||
|
||||
When negative: the left tail is longer; the mass of the distribution is concentrated on the right of the figure. When positive: the right tail is longer; the mass of the distribution is concentrated on the left of the figure.
|
||||
}
|
||||
\seealso{
|
||||
\code{\link{kurtosis}}
|
||||
}
|
23
man/trends.Rd
Normal file
23
man/trends.Rd
Normal file
@ -0,0 +1,23 @@
|
||||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/trends.R
|
||||
\name{trends}
|
||||
\alias{trends}
|
||||
\title{Detect trends using Machine Learning}
|
||||
\usage{
|
||||
trends(data, threshold_unique = 30, na.rm = TRUE, info = TRUE)
|
||||
}
|
||||
\arguments{
|
||||
\item{data}{a \code{data.frame}}
|
||||
|
||||
\item{threshold_unique}{do not analyse more unique \code{threshold_unique} items per variable}
|
||||
|
||||
\item{na.rm}{a logical value indicating whether \code{NA} values should be stripped before the computation proceeds.}
|
||||
|
||||
\item{info}{print relevant combinations to console}
|
||||
}
|
||||
\value{
|
||||
A \code{list} with class \code{"trends"}
|
||||
}
|
||||
\description{
|
||||
Test text
|
||||
}
|
Reference in New Issue
Block a user