search for: tstdata

Displaying 3 results from an estimated 3 matches for "tstdata".

Did you mean: testdata
2009 Nov 16
3
Sum over indexed value
I am sure this is easy but I am not finding a function to do this. I have two columns in a matrix. The first column contains multiple entries of numbers from 1 to 100 (i.e. 10 ones, 8 twos etc.). The second column contains unique numbers. I want to sum the numbers in column two based on the indexed values in column one (e.g. sum of all values in column two associated with the value 1 in column
2005 Oct 06
0
how to handle missing values in the data?
...Linear Model (glm) function. I might have commited some error, but i am not sure where i did? The script for glm function i have tried is as: trdata<-data.frame(train,row.names=NULL) attach(trdata) glmmod <- glm(Class~., family= binomial(link = "logit"),data=trdata,maxit=50) tstdata<-data.frame(test,row.names=NULL) attach(tstdata) xtst <- subset(tstdata, select = -Class) ytst <- Class pred<-predict(glmmod,xtst) library(mda) confusion(pred,ytst) can you help me to sort out the problems? Uttam Phulwale Tata Consultancy Services Limited Mailto: uttam.phulwale@tcs....
2009 Nov 16
8
extracting the last row of each group in a data frame
Hi, I would like to extract the last row of each group in a data frame. The data frame is as follows Name Value A 1 A 2 A 3 B 4 B 8 C 2 D 3 I would like to get a data frame as Name Value A 3 B 8 C 2 D 3 Thank you for your suggestions in advance Jeff