You are on page 1of 8

data A; infile "C:\estruturao.

dat"expandtabs; input arv t h100; t2=t**2; t1=1/t; lnt=log(t); lnt2=log(t**2); lnt1=log(t1); PROC STEPWISE; MODEL H100= t t2 t1 lnt lnt2 lnt1; by arv; proc plot; plot h100*t; By arv; Run; quit;

data A; infile "C:\estruturao.dat"expandtabs; input arv t h100; t1=t; t2=t**2; PROC REG; MODEL H100= t t1 t2; proc plot; plot h100*t; Run; quit; data A; infile "C:\estruturao.dat"expandtabs; input arv t h100; lnh=log(h100); t1=t; t2=t**2; lnt=log(t); t3=1/t; PROC REG; MODEL H100= t1 t2; MODEL lnh=lnt t3; OPTIONS DEVICE=ACTIVEX; ODS HTML; proc nlin method=gauss; parms a=30 b=0.3 c=1; model h100=a*(1-2.7183**(-b*t))**c; output out=ss1 r=res; proc gplot; plot res*h100/vref=0; run; quit;

data A; infile "C:\Autura.dat"expandtabs; input par DAP HC; lnh=log(HC); D1=DAP;

D2=DAP**2; lnD=log(DAP); D3=1/DAP; PROC REG; MODEL HC= D1 D2; MODEL lnh=lnD D3; by par; OPTIONS DEVICE=ACTIVEX; ODS HTML; proc nlin method=gauss; parms a=30 b=0.3 c=1; model HC=a*(1-2.7183**(-b*DAP))**c; output out=ss1 r=res; by par; proc gplot; plot res*HC/vref=0; by par; run; quit;

data A; infile "C:\Autura.dat"expandtabs; input par DAP HC; lnh=log(HC); D1=DAP; D2=DAP**2; lnD=log(DAP); D3=1/DAP; PROC REG; MODEL HC= D1 D2; MODEL lnh=lnD D3; OPTIONS DEVICE=ACTIVEX; ODS HTML; proc nlin method=gauss; parms a=1 b=1 c=1; model HC=a*2.7183**(-2.7183**(b-c*DAP)); output out=ss1 r=res; proc gplot; plot res*HC/vref=0; run; quit;

Excluir arvores e analise de covariancia


data A; infile "C:\estruturao.dat"expandtabs; input arv t h100; lnh=log(h100); if arv eq 8 then delete; if arv eq 19 then delete; if arv eq 25 then delete; if arv eq 15 then delete; if arv eq 22 then delete; if arv eq 38 then delete; if arv eq 37 then delete; if arv eq 16 then delete; t1=t; t2=t**2; lnt=log(t);

t3=1/t; PROC REG; MODEL lnh=lnt t3; by arv; proc glm; class arv; model lnh= lnt t1 arv/ss3; lsmeans arv/e stderr pdiff; by arv; proc gplot; plot res*h100/vref=0; by arv; run; quit;

comando aula 30/08/11


data A; infile "C:\estruturao.dat"expandtabs; input arv t h100; lnh=log(h100); t1=t; t2=t**2; lnt=log(t); t3=1/t; if t le 3 then delete; if arv eq 8 then delete; if arv eq 19 then delete; if arv eq 25 then delete; if arv eq 15 then delete; if arv eq 22 then delete; if arv eq 38 then delete; if arv eq 37 then delete; if arv eq 16 then delete; OPTIONS DEVICE=ACTIVEX; ODS HTML; PROC REG; MODEL lnh=lnt t3; by arv; output out=ss1 r=res; proc gplot; plot res*lnh/vref=0; proc glm; class arv; model lnh= lnt t3 arv arv*lnt arv*t3/solution; run; quit;

parte 2 data A; infile " C:\estruturao.dat " expandtabs; input arv t h100; lnh=log(h100); t1=t; t2=t**2; lnt=log(t); t3=1/t;

if if if if if if if if if

t le 3 arv eq arv eq arv eq arv eq arv eq arv eq arv eq arv eq

then delete; 8 then delete; 19 then delete; 25 then delete; 15 then delete; 22 then delete; 38 then delete; 37 then delete; 16 then delete;

/*grupos*/ if arv eq if if if if if if if if if arv eq if if if if if 42 then gr=1; arv eq 1 then gr=1; arv eq 2 then gr=1; arv eq 5 then gr=1; arv eq 12 then gr=1; arv eq 14 then gr=1; arv eq 29 then gr=1; arv eq 36 then gr=1; arv eq 19 then gr=1; 41 then gr=2; arv eq 3 then gr=2; arv eq 10 then gr=2; arv eq 18 then gr=2; arv eq 21 then gr=2; arv eq 31 then gr=2;

if arv eq 40 then gr=3; if arv eq 4 then gr=3; if arv eq 26 then gr=3; if arv eq 39 then gr=3; if arv eq 35 then gr=4; if arv eq 34 then gr=5; if arv eq 6 then gr=5; if arv eq 7 then gr=5; if arv eq 11 then gr=5; if arv eq 28 then gr=5; if arv eq 30 then gr=5; if arv eq 32 then gr=5; if arv eq 33 then gr=6; if arv eq 23 then gr=6; if arv eq 27 then gr=7; if arv eq 9 then gr=7; if arv eq 13 then gr=7; if arv eq 24 then gr=8; if arv eq 17 then gr=8; if arv eq 20 then gr=9; proc sort; by gr; OPTIONS DEVICE=ACTIVEX; ODS HTML; PROC REG; MODEL lnh= t3 lnt; by gr; output out=s1 r=res student=std; proc gplot data=s1;

*plot res*lnh/vref=0; plot std*lnh; by gr; run; quit;

relao lnt*arv data A; infile "C:\estruturao.dat"expandtabs; input arv t h100; lnh=log(h100); t1=t; t2=t**2; lnt=log(t); t3=1/t; if t le 3 then delete; if arv eq 8 then delete; if arv eq 19 then delete; if arv eq 25 then delete; if arv eq 15 then delete; if arv eq 22 then delete; if arv eq 38 then delete; if arv eq 37 then delete; if arv eq 16 then delete; /*grupos*/ if arv eq 42 then delete; if arv eq 1 then delete; if arv eq 2 then delete; if arv eq 5 then delete; if arv eq 12 then delete; if arv eq 13 then delete; if arv eq 14 then delete; if arv eq 17 then delete; if arv eq 24 then delete; if arv eq 27 then delete; if arv eq 39 then delete; if arv eq 41 then delete; if arv eq 3 then delete; if arv eq 10 then delete; if arv eq 11 then delete; if arv eq 18 then delete; if arv eq 31 then delete; if arv eq 40 then delete; if arv eq 26 then delete; if arv eq 29 then delete; if arv eq 36 then delete; if arv eq 35 then delete; if arv eq 34 then delete; if arv eq 6 then delete; if arv eq 7 then delete; if arv eq 32 then delete; if arv eq 33 then delete; if arv eq 4 then delete; if arv eq 23 then delete; if arv eq 28 then delete; if arv eq 30 then delete;

if arv eq 21 then delete; if arv eq 20 then delete; if arv eq 9 then delete; OPTIONS DEVICE=ACTIVEX; ODS HTML; PROC REG; MODEL lnh=t3 lnt; output out=ss1 r=res; proc gplot; plot res*lnh/vref=0; proc glm; class arv; model lnh=t3 lnt arv arv*lnt/solution; run; quit;

data A; input Dg H100 N t; d=Dg; h=h100; n=N; t=t; lnd=log(Dg); lnh=log(H100); lnn=log(N); lnt=log(t); h1=1/H100; h2=H100**2; h3=sqrt(H100); n1=1/N; n2=N**2; n3=sqrt(N); t1=1/t; t2=t**2; t3=sqrt(t); ht=h*t2; ht2=(ht)**2; cards; PROC Reg; MODEL d= h3 ht2/ noint; MODEL d= h3 ht/ noint; output out=ss1 r=res; proc gplot; plot res*Dg/vref=0; run; quit; aula 13 de setembro de 2011 data A; input H100 G dg t; d=Dg; h=h100; G=G; t=t; lnd=log(Dg); lnh=log(H100);

lng=log(G); lnt=log(t); h1=1/H100; h2=H100**2; h3=sqrt(H100); g1=1/G; g2=G**2; g3=sqrt(G); t1=1/t; t2=t**2; t3=sqrt(t); ht=h*t2; ht2=(ht)**2; if t gt 20 then delete; cards; PROC REG; MODEL dg= g3 h/ noint; output out=ss1 r=res p=est; proc gplot; plot dg*g3 est*g3/overlay; plot dg*h est*h/overlay; run; quit; data A; input H100 G Dg t N; d=Dg; h=h100; n=N; t=t; G=G; lnd=log(Dg); lnh=log(H100); lnn=log(N); lnt=log(t); lng=log(G); h1=1/H100; h2=H100**2; h3=sqrt(H100); G1=1/G; G2=G**2; G3=sqrt(G); n1=1/N; n2=N**2; n3=sqrt(N); t1=1/t; t2=t**2; t3=sqrt(t); lnt4=log(t**2); ht=h*t2; ht2=(ht)**2; if t gt 20 then delete; cards; ; PROC Reg; MODEL lnd= lnn h1 lnt4; MODEL d= h lnt/ noint; MODEL d= h3 ht/ noint; MODEL d= n1 h n2 G/ noint;

output out=ss1 r=res p=est; proc gplot; plot res*Dg/vref=0; PROC NLIN METHOD=GAUSS; PARMS A1=0.000004 A2=0.38 B1=0.37 B2=-0.85; MODEL DG = 1/((N*A1*H**A2)+(B1*H**B2)); OUTPUT OUT=S2 R=R2 P=P2; PROC GPLOT; PLOT R2*DG/VREF=0; PLOT DG*H P2*H/OVERLAY; PLOT P2*DG; run; quit;

You might also like