lm in R [🇷 for BE/BA]

posted by Helmut Homepage – Vienna, Austria, 2008-09-26 02:23 (5689 d 19:42 ago) – Posting: # 2416
Views: 56,004

Dear ElMaestro!

❝ Actually, I do not know of the "|" to specify nesting.

❝ I used "Subj%in%Seq"


I don’t know both notations. See the documentation of lm under 'Details':

Details
Models for lm are specified symbolically. A typical model has the form response ~ terms where response is the (numeric) response vector and terms is a series of terms which specifies a linear predictor for response. A terms specification of the form first + second indicates all the terms in first together with all the terms in second with duplicates removed. A specification of the form first:second indicates the set of terms obtained by taking the interactions of all terms in first with all terms in second. The specification first*second indicates the cross of first and second. This is the same as first + second + first:second.

Dif-tor heh smusma 🖖🏼 Довге життя Україна! [image]
Helmut Schütz
[image]

The quality of responses received is directly proportional to the quality of the question asked. 🚮
Science Quotes
Thread locked

Complete thread:

UA Flag
Activity
 Admin contact
22,993 posts in 4,828 threads, 1,656 registered users;
63 visitors (0 registered, 63 guests [including 0 identified bots]).
Forum time: 22:05 CEST (Europe/Vienna)

So far as I can remember,
there is not one word in the Gospels
in praise of intelligence.    Bertrand Russell

The Bioequivalence and Bioavailability Forum is hosted by
BEBAC Ing. Helmut Schütz
HTML5