You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I am trying to perform a binom_test and extract the p-value from the result. The documentation does not cover this scenario.
Describe the solution you'd like
A simple example of how to extract values from a statistical test
Describe alternatives you've considered
There are none that I have found
Additional context
This is an example of what I am trying to do:
#r "nuget: RProvider"
open RProvider
open RProvider.stats
fsi.AddPrinter (fun (synexpr:RDotNet.SymbolicExpression) -> synexpr.Print())
let x = 10.0
let summary = R.binom_test(x, 100.0, 0.5, alternative="two.sided")
// What I would like to be able to do
let pValue : float = summary.GetValue "p.value"
The text was updated successfully, but these errors were encountered:
Documentation still needs to be clearer, but with the latest changes you should be able to directly access named list items without needing a reference to RDotNet as follows (by opening the RProvider.Operators module):
#r "nuget:RProvider"openRProvideropenRProvider.OperatorsopenRProvider.stats
fsi.AddPrinter FSIPrinters.rValue
letx:float =10.0letsummary= R.binom_test(x,100.0,0.5, alternative ="two.sided")// val summary: SymbolicExpression =// Exact binomial test// data: 10 and 100// number of successes = 10, number of trials = 100, p-value < 2.2e-16// alternative hypothesis: true probability of success is not equal to 0.5// 95 percent confidence interval:// 0.04900469 0.17622260// sample estimates:// probability of success // 0.1
summary?``p.value``// val it: SymbolicExpression = [1] 3.06329e-17
summary?statistic
// val it: SymbolicExpression = number of successes // 10
Is your feature request related to a problem? Please describe.
I am trying to perform a
binom_test
and extract the p-value from the result. The documentation does not cover this scenario.Describe the solution you'd like
A simple example of how to extract values from a statistical test
Describe alternatives you've considered
There are none that I have found
Additional context
This is an example of what I am trying to do:
The text was updated successfully, but these errors were encountered: