Description Usage Arguments Value Examples
You can use 'Info_prior' with any data frame.
1 | Info_prior(x, y, laplace = 0)
|
x |
Prior information of predictors. |
y |
Prior information of responses. |
laplace |
A small correction to smooth categorical data. |
'apriori': Distribution of responses.
'numvar_dist': A list of distribution (mean and variance) of numeric predictors.
'catvar_conpro': A list of conditional probability of categorical predictors.
'var_names': Names of all predictors.
1 2 3 4 5 | data(mood)
x=mood[,1:5]
y=mood[,6]
prior=Info_prior(x,y) #Laplace=0 as default
prior
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.