私は次の問題を抱えています。問題の解決策を見つけることができないので、ゆっくりと疲れました。次のようにスターゲイザー、ノートのセクションでHTMLの回帰結果表を作成することは意義のカットオフ値を示した場合R Stargazer:ノート内の固定文字ベクタと動的カットオフを組み合わせる方法
:私は、次の問題に直面しています
*p**p***p<0.01
しかし、私は次のようなレイアウトを好むだろう。
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’
私はカットオフを動的に抽出し、固定文字ベクトルと組み合わせることでこれを取得したいと考えています。スターゲイザーマニュアルは言う:
> a character vector containing notes to be included below the table.
> The character strings can include special substrings that will be
> replaced by the corresponding cutoffs for statistical significance
> 'stars': [*], [**], and [***] will be replaced by the cutoffs, in
> percentage terms, for one, two and three 'stars,' respectively (e.g.,
> 10, 5, and 1). Similarly, [0.*], [0.**] and [0.***] will be replaced
> by the numeric value of cutoffs for one, two and three 'stars' (e.g.,
> 0.1, 0.05, and 0.01). [.*], [.**] and [.***] will omit the leading zeros (e.g., .1, .05, .01).
私は今、すべての可能な組み合わせを試してみましたが、私はいつも失敗しました。私はいつも、HTMLファイルで[R]、例えば[***]を出力するか、エラーを投げつける。
ノート内の固定ストリング値とダイナミックカットオフを組み合わせる正しいコードを見つけ出す手助けをしてください。