mardi 16 juin 2020

How to apply ks.test in R for a 5 Column data frame/Matrix based on groups?

I am trying to run KStest for a data frame/Matrix in R. (4 column holds values of corresponding layer and one column holds the group values)

The sample of the dataframe is as follows.

Dataframe Sample

I want to execute KStest for Rows that falls within a group. The above example holds 8 classes with its values varying from 1 to 8. The required output should be as follows.

Class, KStest

1, KSvalue - 1 2, KSvalue - 2 3, KSvalue - 3 4, KSvalue - 4 5, KSvalue - 5 6, KSvalue - 6 7, KSvalue - 7 8, KSvalue - 8

There are totally 40000 samples that are split into 8 groups. Each group follows a pattern wrt to the Four Band/Attribute values. I want to find if the datasets follow a pattern and if they are statistically valid.

Aucun commentaire:

Enregistrer un commentaire