PSIAIMS / CAMIS

https://psiaims.github.io/CAMIS/
Apache License 2.0
55 stars 51 forks source link

lognormal data 1 sample t-test #305

Open DrLynTaylor opened 2 weeks ago

DrLynTaylor commented 2 weeks ago

https://github.com/PSIAIMS/CAMIS/blob/5e19d3d0ac003e46dca043f203b3c844bb8ecca4/R/ttest_1Sample.qmd#L73

Can someone look into whether SAS option 'dist=lognormal' gives the same results, as simply taking the natural log transform the data, calculating the t-test p-value & the mean/ CIs on the log scale and then exponentiating them back in order to get the t-test for lognormal data. (add that SD can't be back transformed).. If these give same results as SAS then update Comparison to say although option not available in R, can do it using log / anti-log. Could also look into the EnvStats Package to see if their function is possible & reliable alternative

Please whoever does the update, check paired t-test & two-sample t-test as if they reference EnvStats & lognormal, the same update would be needed there.