同时变换响应变量
响应变量也可以做变换,但这意味着在最后需要多一步来还原该变换。也就是说,您需要对预测值进行"反变换"。
在视频中,您看到了数字广告流程的第一步:投入预算购买广告,并统计有多少人看到它("impressions")。下一步是确定有多少人在看到广告后会点击。
ad_conversion 已可用,并且已加载 ggplot2 和 tibble。
本练习是课程的一部分
R 中的回归入门
交互式实操练习
通过完成这段示例代码来试试这个练习。
# Run the code to see the plot
# Edit to raise x, y aesthetics to power 0.25
ggplot(ad_conversion, aes(n_impressions, n_clicks)) +
geom_point() +
geom_smooth(method = "lm", se = FALSE)