Learn R Programming

petersenlab (version 1.1.0)

pom: Proportion of Maximum (POM).

Description

Calculate the proportion of maximum (POM) score given a minimum and maximum score.

Usage

pom(data, min = NULL, max = NULL)

Value

Proportion of maximum possible or observed values.

Arguments

data

The vector of data.

min

The minimum possible or observed value.

max

The maximum possible or observed value.

Details

The minimum and maximum score for calculating the proportion of maximum could be the possible or observed minimum and maximum, respectively. Using the possible minimum and maximum would yield the proportion of maximum possible score. Using the observed minimum and maximum would yield the proportion of minimum and maximum observed score. If the minimum and maximum possible scores are not specified, the observed minimum and maximum are used.

See Also

Other conversion: convert.magic(), convertHoursAMPM(), convertToHours(), convertToMinutes(), convertToSeconds(), percentileToTScore()

Examples

Run this code
# Prepare Data
v1 <- sample(1:9, size = 1000, replace = TRUE)

# Calculate Proportion of Maximum Possible (by specifying the minimum and maximum possible)
pom(v1, min = 0, max = 10)

# Calculate Proportion of Maximum Observed
pom(v1)

Run the code above in your browser using DataLab