The preferred glutarimide polymers are those which have been prepared from acrylic polymers such as poly(methylmethacrylate) and copolymers thereof by reaction in an extruder reactor in accordance with the aforementioned Kopchik invention with ammonia or methyl amine so that about 1 to about 100% of the acrylic ester groups are imidized.