最近我从STATA转到R,对于STATA命令“xtlogit,fe或re”和“predict”的R等效实现有些困难。请问是否能提供一些帮助,调整以下情形: data <- read.table("http://people.stern.nyu.edu/wgreene/Econome...
我正在尝试编写一个函数,根据传递的键和参数执行特定的计算。我还想强制传递的键和参数之间的关系,因此我使用了带有约束的通用函数: interface ProductMap { one: { basePrice: number; discount: number; }, ...