I've been trying to filling in the missing variables in a matrix with the
mean from the column they are in. So the following code does this just fine.
#3X3 matrix where the middle number is missing.
data=matrix(c(1:4,NA,6:9), 3, 3)
#replace missing values in an vector with the mean of the vect
.75 and P-value was below 0.05, how would I do this?
Cheers
Ben
Steve Lianoglou-6 wrote:
>
> Hi,
>
> On Tue, Aug 25, 2009 at 10:11 PM, bwgoudey wrote:
>>
>> I'm using the rcorr function from the Hmisc library to get pair-wise
>> correlations from a set of obser
I'm using the rcorr function from the Hmisc library to get pair-wise
correlations from a set of observations for a set of attributes. This
returns 3 matrices; one of correlations, one of the number of observations
seen for each pair and the final of the P values for each correlation seen.
>From
I'm currently working with some large complex data structures eg list of
lists of data_frames containing lots more variables and lists etc.
Sometimes, I'd like to be able to bring up a simple representation of the
structure I'm working with, minus all of the values it contains (so simply
printin
I have a small matrix where the columns represents a ranking and the values
are the number of times each ranking was obtained eg
1 2 3
x 1 2 0
y 0 1 2
z 2 0 1
I'd like to be able to return an average of the ranking obtained
average
x 1.67
y 2.67
z 1.67
Whats the nicest
5 matches
Mail list logo