Displaying 2 results from an estimated 2 matches for "vanwalleghem".
2004 Jun 04
1
use of "rcorr.cens" with binary response?
...should do
the job, but it is not clear to me how to define the input vectors? Is
"x" a vector with the fitted probabilities and "s" a vector containing
the observed response variable? Or does anybody know an alternative?
Any help would be greatly appreciated,
Thanks,
Tom
--
Tom Vanwalleghem
Physical and Regional Geography, K.U.Leuven
Redingenstraat 16
B-3000 LEUVEN
+32(0)16/326414
2011 Aug 25
2
apply function to spatial grid data frame to calculate CTI
Dear R helpers,
I'm new to R and struggling with applying functions to a spatial grid data frame, called data for example.data has a variable named "slope" and "uparea"
Basically, I need to calculate the tan(data$slope)Next, I need to divide data$uparea by data$slope and take the log() of that all
In the basic examples I found how to make simple multiplications with a