• Aucun résultat trouvé

Linear regression We try to explain « choice » by « age »

N/A
N/A
Protected

Academic year: 2022

Partager "Linear regression We try to explain « choice » by « age »"

Copied!
1
0
0

Texte intégral

(1)

Linear regression

We try to explain « choice » by « age »

LIBNAME mydata "D:\SAS"

access=readonly;

PROC IMPORT OUT= WORK.ESTIM DATAFILE=

"D:\SAS\estim20171220.csv"

DBMS=TAB REPLACE;

GETNAMES=YES;

DATAROW=2;

RUN;

PROC SORT data=estim; by date;

PROC FREQ data=estim; TABLES age date choice;

RUN;

* categorical explanatory variable;

PROC GLM data=estim; model choice

= age /solution;

run;

* means for majordeplife;

PROC sort; by age;

Proc means; var choice;

by age;

run;

* bar graph;

Proc GCHART; vbar choice /discrete type=mean sumvar=age;

run;

proc reg;

model choice=age;

run;

La procédure GLM Variable dépendante : choice

Source DDL Somme des carrés Carré moyen Valeur F Pr > F

Modèle 1 2689.3638 2689.3638 411.99 <.0001

Erreur 23231 151645.6289 6.5277

Total 23232 154334.9927

R-carré Coef de var Racine MSE choice Moyenne 0.017425 51.10455 2.554942 4.999440

Paramètre Estimation Erreur type Valeur du test t Pr > |t|

Constante 5.950084736 0.04974458 119.61 <.0001 Age -0.038691655 0.00190622 -20.30 <.0001

In conclusion we can say that there is a linear correlation between « choice » variable and « age »:

People are more risk averse when they get older or an other way to say the same result is that younger people are more risk lover.

This can be interpreted in this way :

When you are young, you take risk by optimism When you get older, experienced, you prefer safety

Références

Documents relatifs

Our advanced trial setup allows users to choose in real time between a broad range of fine granular quality classes of an HD video sub- ject to different price plans, and

Traduis comme il convient les questions suivantes

Cet aspect collectif confirme la dimension romantique des soirées de mariage, puisque, d’une certaine manière, tout le monde y adhère et la reproduit lors de

Meanwhile, the European Organization of Research and Treatment of Cancer (EORTC) defines a cancer survivor as an individual who was diagnosed with cancer, finished primary

Type 1 diabetes remains the most common form of diabetes in children; however, there is increasing recogni- tion of other forms such as type 2 diabetes or monogenic forms

Écris une lettre en expliquant quels locaux il y a dans ton école.. Ensuite, explique ce que tu peux y pratiquer

At the North Pole, which is 90 degrees latitude, Polaris (the North Star) is directly overhead at an altitude of 90 degrees.. At the equator, which is zero degrees latitude, Polaris

10 copies (+ 2 AP) deluxe limited edition of this book, accompanied by a signed and numbered photo by the artist is available from onestar press. Photos: Olga