search for: item_cat_fit

Displaying 1 result from an estimated 1 matches for "item_cat_fit".

2009 Jul 22
1
How to dynamically generate lm() function arguments?
Hi All, How do you dynamically generate the arguments for the lm() function when your items vary for each database. Say in my case for a particular database i have items from i1 to i15 . In the code below there a line like this :-- item_cat_fit<-lm(as.numeric(item_item_table$i1) ~ as.numeric(item_item_table$i2) + as.numeric(item_category_table$i3) ) *# this gives proper results,i am accessing each column of the dataset using column names. * how do i dynamically generate this :--- item_cat_fit<-lm(as.numeric(item_item_table[item_ite...