lm in R [🇷 for BE/BA]

posted by Helmut Homepage – Vienna, Austria, 2008-09-26 02:23 (6109 d 07:17 ago) – Posting: # 2416
Views: 71,613

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
23,424 posts in 4,927 threads, 1,672 registered users;
35 visitors (0 registered, 35 guests [including 25 identified bots]).
Forum time: 09:41 CEST (Europe/Vienna)

Truth and clarity are complementary.    Niels Bohr

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