View source: R/ReductionDamage.R
ReductionDamage | R Documentation |
Function to estimate of the damage reduction
ReductionDamage(ResultSolutionSource,LossSource,EffectivenessOfSolution)
ResultSolutionSource |
Output of the SolutionSource function. |
LossSource |
Loss Source data. Sources of loss refers to the number of individuals per observation that cause damage to the system. |
EffectivenessOfSolution |
Output of the EffectivenessOfSolution function. |
The function returns the estimate of the reduction in damage.
Germano Leao Demolin-Leite (Instituto de Ciencias Agrarias da UFMG)
Alcinei Mistico Azevedo (Instituto de Ciencias Agrarias da UFMG)
EffectivenessOfSolution
, SolutionSource
data("DataLossSource") ChisqTest_Distribution(DataLossSource) data("DataSolutionSource") ChisqTest_Distribution(DataSolutionSource) data("DataDefoliation") data("DataDamage") DataResult<-cbind(DataDefoliation,DataDamage$D.L.S.2,DataDefoliation, DataDamage$D.L.S.4,DataDefoliation) ResultLossSource<-LossSource(DataLoss = DataLossSource,DataResult =DataResult, Cols=c(1,3,5),verbose=TRUE) EOS<-EffectivenessOfSolution(DataLossSource =DataLossSource, DataSolutionSource =DataSolutionSource, ResultLossSource = ResultLossSource) EOS #Put: y and y # ID<-SelectEffectivenessOfSolution(EOS) ID<-c(FALSE,FALSE,FALSE,TRUE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE, FALSE,FALSE,FALSE,TRUE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE) ResultSolutionSource<-SolutionSource(SolutionData =DataSolutionSource,Production =DataResult, EffectivenessOfSolution =EOS ,Id = ID,Verbose = TRUE ) ResultSolutionSource # Put: y,n,y,n,y,n and y # ReductionAbundance(ResultSolutionSource,ResultLossSource, # EffectivenessOfSolution=EOS) ################################################### EOSDamage<-EffectivenessOfSolution(DataLossSource =DataDamage, DataSolutionSource =DataSolutionSource, ResultLossSource = NULL) EOSDamage # Put: y, n and y #ReductionDamage(ResultSolutionSource,LossSource=DataDamage, # EffectivenessOfSolution=EOSDamage)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.