search for: weigted

Displaying 2 results from an estimated 2 matches for "weigted".

Did you mean: weighted
2006 Feb 07
2
question about binary data file and data.frame
I have a binary file with data sequence in the order [age,weight][age,weight] .... I know the length of the data and I want to load it into a data.frame. of course a way to do this is to read age and weight seperately and then use cbin(age,weight) to combine them into a dataframe, but is there a better solution? Thanks in advance!
2009 Oct 10
1
many weighted means: is there a simpler way?
...t = runif(10)) df g <- function(x) weighted.mean(x[, 1], x[, 2]) by(df[,c("v1","wt")],df[,c("year","gender")],g) I can use as above by command for each variable (v1,v2) separately but I wonder if there is some simpler way that yields a table/data frame of weigted means for all "vi"s where i=1...N. Thank you very much, ozan [[alternative HTML version deleted]]