lm in R [🇷 for BE/BA]

posted by Helmut Homepage – Vienna, Austria, 2008-09-26 02:23 (6465 d 11:54 ago) – Posting: # 2416
Views: 89,473

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,653 posts in 4,991 threads, 1,570 registered users;
269 visitors (0 registered, 269 guests [including 28 identified bots]).
Forum time: 14:17 CEST (Europe/Vienna)

The epistemological value of probability theory is based on the fact
that chance phenomena, considered collectively and on a grand scale,
create non-random regularity.    Andrey Kolmogorov

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