Displaying 1 result from an estimated 1 matches for "slrout".
Did you mean:
shrout
2008 Oct 15
0
Iterative estimation of linear regression model
...have written the following programme and that I have made use of a sample data (viz., exp.txt):
?
Programme:
?
# Linear regression modelling with sample data (try5.txt)
# Repeated estimation through loop statement
x=read.table("try5.txt",header=T,sep="\t")
nm=names(x)
out="slrout.txt"
sink(out)
nvr=10;nv1=4;nv2=nvr-nv1
for(i in 1:nv1){
dep=nm[i+1]??????
# The 1st dependent variable is C1 (at column no. 2)
for(j in 1:nv2){
ind=nm[j+nv1+1]??
# The first independent variable is C5 (at column no. 6)
# Estimation of simple linear regression equation
slr=lm(dep ~ ind,data...