garyboyd has asked for the wisdom of the Perl Monks concerning the following question:
Is there a way in perl to impute missing data?
I have a 2-D array where missing data is encoded by 9, and the real data exists in a state of either 0,1 or 2. If I export only unique rows in the array I get 8 rows however two of these rows contain missing data and imputation of one of the other three values means that only 6 rows should be displayed
eg
2 2 0 1 0 2 2 0 2 1 0 2 1 1 0 0 1 1 1 0 2 2 0 0 0 2 9 0 2 1 0 2 0 1 0 2 2 0 9 0
The row's containing 2 9 0 2 1 and 2 2 0 9 0 should be removed. Is there a perl module that can do this easily ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Imputation of data
by choroba (Cardinal) on Jan 25, 2016 at 15:41 UTC | |
|
Re: Imputation of data
by Corion (Patriarch) on Jan 25, 2016 at 15:28 UTC | |
|
Re: Imputation of data
by CountZero (Bishop) on Jan 25, 2016 at 17:24 UTC | |
by garyboyd (Acolyte) on Jan 26, 2016 at 09:11 UTC | |
by garyboyd (Acolyte) on Jan 26, 2016 at 11:35 UTC | |
|
Re: Imputation of data
by GotToBTru (Prior) on Jan 25, 2016 at 17:33 UTC | |
|
Re: Imputation of data
by Discipulus (Canon) on Jan 25, 2016 at 22:07 UTC | |
|
Re: Imputation of data
by u65 (Chaplain) on Jan 25, 2016 at 17:52 UTC | |
|
Re: Imputation of data
by u65 (Chaplain) on Jan 25, 2016 at 23:10 UTC |