For example:
dt = Open( "$SAMPLE_DATA/Data\Missing Data Pattern.jmp" );
the number of non-null rows in the "Trial 3" column of this table is 5,
and the number of non-null rows in the "Trial 4" column is 4.
probably this script would do it?
Names default to here(1);
dt = Open( "$SAMPLE_DATA\Missing Data Pattern.jmp" );
x=column(dt, "Trial 4") << get values();
// y =sum(!is missing(x));
// show(x, y);
y = !is missing(x);
rows = transpose(1::n items(y));
show(max(y :* rows));
I don't know how to express it in this formula, right?
Contains(:[Index(1,N Row(dt))],,-1)Thanks!
There are many ways, one May be this one:
Names default to here(1);
dt = Open( "$SAMPLE_DATA\Missing Data Pattern.jmp" );
x=column(dt, "Trial 4") << get values();
y =sum(!is missing(x));
show(x, y);
Thanks!
I'm not being precise here.
It should be:
The row number of the last non-null value in the "Trial 3" column is 5,
The row number of the last non-null value in the "Trial 4" column is 4.
I just don't know how to change this particular value into a generic variable form.
probably this script would do it?
Names default to here(1);
dt = Open( "$SAMPLE_DATA\Missing Data Pattern.jmp" );
x=column(dt, "Trial 4") << get values();
// y =sum(!is missing(x));
// show(x, y);
y = !is missing(x);
rows = transpose(1::n items(y));
show(max(y :* rows));
Thank Georg!
s4 = Max(
!Is Missing( Column( 4 ) << get values() ) :* Transpose(
1 :: N Items( !Is Missing( Column( 4 ) << get values() ) )
)
);