The formula is created sepearately and data is created for the formula and then use the modelling lm ----- Thanks in Advance Arun -- View this message in context: http://r.789695.n4.nabble.com/Help-in-creating-a-matrix-tp4551532p4551967.html Sent from the R help mailing list archive at Nabble.com.