View source: R/attribute_sim_ind.R
attribute_sim_ind | R Documentation |
Simulate the attributes for each product with the assumption that the attributes of shapes are independent of the attributes of levels. We mean by independence the fact that each attribute is related to one of the following: shape, level or nothing.
attribute_sim_ind(
product_shapes_and_levels,
attributes_number,
shape_attributes_number,
level_attributes_number
)
product_shapes_and_levels |
A numeric dateframe of three columns: product_id, assigned_shape and assigned_level |
attributes_number |
The number of attributes |
shape_attributes_number |
The number of attributes assigned to shape |
level_attributes_number |
The number of attributes assigned to level |
A numeric dateframe of the following columns: product_id, assigned_shape, assigned_level and attributes (as columns)
attribute_sim_ind(product_shapes_and_levels=
data.frame(product_id=1:4,assigned_shape=c(1,1,2,2),
assigned_level=c(5,3,3,3)),
attributes_number=15,
shape_attributes_number=7,
level_attributes_number=4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.