[R] Proc Nnpar1way with D option - equivalent in R

SASandRlearn sasandrlearn at gmail.com
Wed Nov 14 03:00:05 CET 2012


Dan,

what you suggested worked out well. This code below also worked out well for
me and it matches with SAS output.

Ks <- cbind(x,fitted(d1logit))
ks.df <- data.frame(Ks)
x <- subset(ks.df,x==0,select=c(V2))
y <- subset(ks.df,x==1,select=c(V2))
ks.test(x[,'V2'], y[,'V2'], alternative = c("two.sided"),exact=NULL)

Thank you



--
View this message in context: http://r.789695.n4.nabble.com/Proc-Nnpar1way-with-D-option-equivalent-in-R-tp4649348p4649459.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list