geomean() [Software]
Hi Helmut,
geomean() won't solve the problem. A function could only be used within a data step or proc sql.
What the user is asking it is impossible (I think) to do within proc glm. The only way of obtaining geometric "LSmean" in proc glm is by using log-transformed data in the model statement as dependent variable.
It he/she intends to obtain geometric means from raw data, it could use either geomean within a proc sql query, use geomen within proc survey or by using proc summary in log-transformed data and the exponentiate the result in a data step.
Regards,
David
geomean() won't solve the problem. A function could only be used within a data step or proc sql.
What the user is asking it is impossible (I think) to do within proc glm. The only way of obtaining geometric "LSmean" in proc glm is by using log-transformed data in the model statement as dependent variable.
It he/she intends to obtain geometric means from raw data, it could use either geomean within a proc sql query, use geomen within proc survey or by using proc summary in log-transformed data and the exponentiate the result in a data step.
Regards,
David
Complete thread:
- SAS: Calculation of Geometric Mean arl_stat 2017-02-13 06:58 [Software]
- geomean() Helmut 2017-02-13 11:02
- geomean()DavidManteigas 2017-02-13 16:17
- geomean() Helmut 2017-02-14 14:06
- geomean() in SAS - crap d_labes 2017-02-14 15:39
- geomean() in SAS - crap DavidManteigas 2017-02-15 10:50
- geomean() in SAS - crap ElMaestro 2017-02-15 11:21
- geomean() in SAS - crap DavidManteigas 2017-02-15 13:06
- Efficiency – who cares? Helmut 2017-02-15 14:26
- Efficiency – who cares? nobody 2017-02-15 15:22
- Efficiency – who cares? DavidManteigas 2017-02-15 16:12
- Efficiency – who cares? Helmut 2017-02-15 16:39
- Efficiency – who cares? Helmut 2017-02-15 14:26
- Big money d_labes 2017-02-15 13:19
- geomean() in SAS - crap DavidManteigas 2017-02-15 13:06
- geomean() in SAS - crap ElMaestro 2017-02-15 11:21
- geomean() in SAS - crap DavidManteigas 2017-02-15 10:50
- geomean() in SAS - crap d_labes 2017-02-14 15:39
- geomean() Helmut 2017-02-14 14:06
- geomean()DavidManteigas 2017-02-13 16:17
- geomean() Helmut 2017-02-13 11:02