Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
11 個の変数で構成される IMS というデータセットがあります。 強いテキスト
変数pi == 1であるすべての観測値について、変数std.yの平均を計算したいと思います。
これを計算する方法を教えてくれる人はいますか? :)
よろしく、ヘンリック
mean(IMS$std.y[IMS$pi==1])
これは、R に関するほとんどの入門テキストから入手できるものです。ここに質問を投稿する前に、それらを一読することをお勧めします。