Vous êtes sur la page 1sur 7

Partie 1 

: Transactions immobilières et prix des logements

Programme

libname rep "C:\Documents and Settings\Salima\Bureau";


data prixlog;
set rep.prixlog;
run;
proc reg data=prixlog;
model prix=studio T1 T2 T3 T4 T5 parking;
run;
Sortie
The REG Procedure
Model: MODEL1
Dependent Variable: prix

Number of Observations Read 249


Number of Observations Used 249

Analyse de variance

Somme des Carré Valeur


Source DF carrés moyen F Pr > F

Model 6 750501 125083 20.76 <.0001


Error 242 1458123 6025.30131
Corrected Total 248 2208624

Root MSE 77.62281 R-Square 0.3398


Dependent Mean 200.87149 Adj R-Sq 0.3234
Coeff Var 38.64302

NOTE: Model is not full rank. Least-squares solutions for the parameters are not unique. Some statistics will be misleading. A reported DF of 0 or B means
that the estimate is biased.
NOTE: The following parameters have been set to 0, since the variables are a linear combination of other variables as shown.

T5 = Intercept - STUDIO - T1 - T2 - T3 - T4

Résultats estimés des paramètres

Résultat estimé Erreur


Variable Libellé DF des paramètres std Valeur du test t Pr > |t|

Intercept Intercept B 319.12500 27.44381 11.63 <.0001


STUDIO studio (0/1) B -209.87169 33.99784 -6.17 <.0001
T1 type 1 (0/1) B -190.96255 33.66412 -5.67 <.0001
T2 type 2 (0/1) B -165.82630 28.83064 -5.75 <.0001
T3 type 3 (0/1) B -103.67855 28.78169 -3.60 0.0004
T4 type 4 (0/1) B -76.96062 29.90313 -2.57 0.0107
T5 type 5 (0/1) 0 0 . . .
parking 1 72.20039 15.02904 4.80 <.0001

Programme

proc reg data=prixlog;


model prix= T1 T2 T3 T4 T5 parking;
run;
Sortie
Le Système SAS
The REG Procedure
Model: MODEL1
Dependent Variable: prix

Number of Observations Read 249


Number of Observations Used 249

Analyse de variance

Somme des Carré Valeur


Source DF carrés moyen F Pr > F

Model 6 750501 125083 20.76 <.0001


Error 242 1458123 6025.30131
Corrected Total 248 2208624

Root MSE 77.62281 R-Square 0.3398


Dependent Mean 200.87149 Adj R-Sq 0.3234
Coeff Var 38.64302

Résultats estimés des paramètres

Résultat estimé Erreur


Variable Libellé DF des paramètres std Valeur du test t Pr > |t|

Intercept Intercept 1 109.25331 20.06715 5.44 <.0001


T1 type 1 (0/1) 1 18.90914 27.91123 0.68 0.4988
T2 type 2 (0/1) 1 44.04539 21.86470 2.01 0.0451
T3 type 3 (0/1) 1 106.19315 21.75686 4.88 <.0001
T4 type 4 (0/1) 1 132.91107 23.20282 5.73 <.0001
T5 type 5 (0/1) 1 209.87169 33.99784 6.17 <.0001
parking 1 72.20039 15.02904 4.80 <.0001

Programme

data prixlog;
set prixlog;
type=0*studio+1*T1+2*T2+3*T3+4*T4+5*T5;
run;
proc reg data=prixlog;
model prix= Type parking;
run;
Sortie
Model: MODEL1
Dependent Variable: prix

Number of Observations Read 249


Number of Observations Used 249

Analyse de variance

Somme des Carré Valeur


Source DF carrés moyen F Pr > F

Model 2 713180 356590 58.66 <.0001


Error 246 1495444 6079.04181
Corrected Total 248 2208624

Root MSE 77.96821 R-Square 0.3229


Dependent Mean 200.87149 Adj R-Sq 0.3174
Coeff Var 38.81497

Résultats estimés des paramètres

Résultat estimé Erreur


Variable DF des paramètres std Valeur du test t Pr > |t|

Intercept 1 84.26847 12.50976 6.74 <.0001


type 1 41.11765 4.37565 9.40 <.0001
parking 1 71.78844 14.99554 4.79 <.0001

Programme

proc reg data=prixlog;


model prix= T1 T2 T3 T4 T5 parking;
test T2=2*T1, T3=3*T1, T4=4*T1, T5=5*T1;
run;

Sortie
Model: MODEL1
Dependent Variable: prix

Number of Observations Read 249


Number of Observations Used 249

Analyse de variance

Somme des Carré Valeur


Source DF carrés moyen F Pr > F

Model 6 750501 125083 20.76 <.0001


Error 242 1458123 6025.30131
Corrected Total 248 2208624

Root MSE 77.62281 R-Square 0.3398


Dependent Mean 200.87149 Adj R-Sq 0.3234
Coeff Var 38.64302

Résultats estimés des paramètres

Variable Libellé DF des paramètres std Valeur du test t Pr > |t|


Intercept Intercept 1 109.25331 20.06715 5.44 <.0001
T1 type 1 (0/1) 1 18.90914 27.91123 0.68 0.4988
T2 type 2 (0/1) 1 44.04539 21.86470 2.01 0.0451
T3 type 3 (0/1) 1 106.19315 21.75686 4.88 <.0001
T4 type 4 (0/1) 1 132.91107 23.20282 5.73 <.0001
T5 type 5 (0/1) 1 209.87169 33.99784 6.17 <.0001
parking 1 72.20039 15.02904 4.80 <.0001

The REG Procedure


Model: MODEL1
Dependent Variable: prix

Number of Observations Read 249


Number of Observations Used 249

Analyse de variance

Somme des Carré Valeur


Source DF carrés moyen F Pr > F

Model 6 750501 125083 20.76 <.0001


Error 242 1458123 6025.30131
Corrected Total 248 2208624

Root MSE 77.62281 R-Square 0.3398


Dependent Mean 200.87149 Adj R-Sq 0.3234
Coeff Var 38.64302

Résultats estimés des paramètres

Résultat estimé Erreur


Variable Libellé DF des paramètres std Valeur du test t Pr > |t|

Intercept Intercept 1 109.25331 20.06715 5.44 <.0001


T1 type 1 (0/1) 1 18.90914 27.91123 0.68 0.4988
T2 type 2 (0/1) 1 44.04539 21.86470 2.01 0.0451
T3 type 3 (0/1) 1 106.19315 21.75686 4.88 <.0001
T4 type 4 (0/1) 1 132.91107 23.20282 5.73 <.0001
T5 type 5 (0/1) 1 209.87169 33.99784 6.17 <.0001
parking 1 72.20039 15.02904 4.80 <.0001

Model: MODEL1

Test 1 Results for Dependent Variable prix

Carré Valeur
Source DF moyen F Pr > F

Numerator 4 9330.34223 1.55 0.1888


Denominator 242 6025.30131
Programme
Question 2.1
proc reg data=prixlog;
model prix=type parking gare police ;
output out=residu r=res;
run;
data residu;
set residu;
t=_n_;
run;
symbol i=none v=plus c=red;
proc gplot data=residu;
plot res*t;
run;

Question 2.2
proc means data=prixlog sum;
var gare police;
run;

Sortie
Question 2.1
The REG Procedure
Model: MODEL1
Dependent Variable: prix

Number of Observations Read 249


Number of Observations Used 249

Analyse de variance

Somme des Carré Valeur


Source DF carrés moyen F Pr > F

Model 4 749624 187406 31.34 <.0001


Error 244 1459000 5979.50948
Corrected Total 248 2208624

Root MSE 77.32729 R-Square 0.3394


Dependent Mean 200.87149 Adj R-Sq 0.3286
Coeff Var 38.49590

Résultats estimés des paramètres

Variable Libellé DF des paramètres std Valeur du test t Pr > |t|


Intercept Intercept 1 91.53443 12.75196 7.18 <.0001
type 1 39.83136 4.37212 9.11 <.0001
parking 1 70.94981 14.89662 4.76 <.0001
GARE présence gare 1 -43.66979 20.13798 -2.17 0.0311
POLICE nbre de commissariat 1 -40.97426 32.06661 -1.28 0.2025

Re s i d u a l
400

300

200

100

- 100

- 200

- 300

0 100 200 300

t
Question 2.2
La procédure MEANS

Variable Libellé Somme


ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
GARE présence gare 16.0000000
POLICE nbre de commissariat 6.0000000
ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ

Vous aimerez peut-être aussi