User Tools

Site Tools


sequential_regression

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
sequential_regression [2019/10/18 07:33] – [r] hkimscilsequential_regression [2020/11/26 08:27] – [Enter] hkimscil
Line 55: Line 55:
 x1sq - x1psq  ~= x2sq - x2psq x1sq - x1psq  ~= x2sq - x2psq
 0.311211 ~= 0.311583 0.311211 ~= 0.311583
 +
 +
 +in R
 +<code>
 +dvar <- read.csv("http://commres.net/wiki/_media/regression01-bankaccount.csv")
 +
 +attach(dvar)
 +cor(dvar)
 +spcor(dvar)
 +pcor(dvar)
 +
 +## or 
 +pcor.test(bankaccount, income, famnum)
 +pcor.test(bankaccount, famnum, income)
 +
 +spcor.test(bankaccount, income, famnum)
 +spcor.test(bankaccount, famnum, income)
 +</code>
 +
 </WRAP> </WRAP>
 ====== Seq. ====== ====== Seq. ======
sequential_regression.txt · Last modified: 2022/05/22 21:50 by hkimscil

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki