search for: demo_nam

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

Did you mean: demo_name
2017 Dec 14
1
Aggregation across two variables in data.table
...ied 3 30-40K Rented 7.648642 6: 35 Associate degree Separated 2 10-15K Rented 7.496411 My objective is to calculate the average of Theta across all pairs of two demographics. For 1 demographic this is straightforward: Demo_names <- c("Age", "Education", "Marital", "Familysize", "Income", "Housing") means1 <- as.list(rep(0, length(Demo_names))) for (i in 1:length(Demo_names)) { Demo_tmp <- Demo_names[i] means1[[i]] <- data_tmp[,list(mean(Theta)),by=De...
2006 Aug 07
0
Doubts after generating with scaffold
...In both of them we are using the ?Thing.new? so? are we instantiating the thing twice?. I don?t understand this piece of code. - For ?list? we use the pagination helper. The line of code is something like: ?@thing_pages, @things = paginate :things, :per_page => 10, :order_by => ''demo_name''? I don?t understand the line. I can understand the code after the ?@things =?, but not the ?@thing_pages,? code. - I?ve also seen in tutorials with older versions that variables such as ?flash? or ?params? are not passed with the at symbol. Do you know the why of these change? If a...