LossSource {ImportanceIndice}R Documentation

Obtaining indices associated with sources of loss

Description

These functions allow to calculate the total n of the L.S. (n), R.P., ks, c, ds, n.I.I., Sum.n.I.I., and percentage of I.I. (P.I.I.) by each L.S..
Equations: n=total n per sample
k.s.= R.P./n
c = SUM of occurrence of L.S. on the samples, where, absence = 0 or presence = 1.
ds = 1 - P of the chi-square test of L.S. on the samples.
n.I.I.=ks x c x ds
Sum.n.I.I. = sum of all n.I.I.
Percentage of I.I. (P.I.I.)=(n.I.I. of each L.S./sum of all n.I.I.)*100

Usage

LossSource(DataLoss,DataProd)

Arguments

DataLoss

It is an matrix object containing data from loss sources.

DataProd

Matrix with a column containing the production data.

Value

The function returns several indices associated with the loss source.

Author(s)

Germano Leao Demolin-Leite (Instituto de Ciencias Agrarias da UFMG)
Alcinei Mistico Azevedo (Instituto de Ciencias Agrarias da UFMG)

See Also

EffectivenessOfSolution , NonAttentionLevel

Examples

library(ImportanceIndice)
data("DataLossSource")
data("DataSolutionSource")
data("DataProduction")
data("DataNumberSamples")

Distribution_LossSource(DataLossSource)
Distribution_SolutionSource(DataSolutionSource)

#################################################
###################################################


LS=LossSource(DataLoss = DataLossSource,DataProd = DataProduction)
LS

LP=LossProduction(Data=DataLossSource,Prod = DataProduction,
                  Evaluation=DataNumberSamples,
                  SegurityMargen=0.75,MaximumToleranceOfLossFruits=1)
LP

ES=EffectivenessOfSolution(DataLossSource=DataLossSource,
                           DataSolutionSource=DataSolutionSource,Production=DataProduction)
ES


[Package ImportanceIndice version 0.0.2 Index]