SimulateData1P: Simulate data for a node with one parent

View source: R/SimulateData1P.R

SimulateData1PR Documentation

Simulate data for a node with one parent

Description

Simulate data for a node with one parent

Usage

SimulateData1P(N, P1, b0.1, b1.1, sd.1)

Arguments

N

Number of observations

P1

Data vector of the parent node P1.

b0.1

Intercept of b0.1 + b1.1*P1, where P1 is the parent of the corresponding node.

b1.1

Slope of P1 for b0.1 + b1.1*P1, where P1 is the parent of the corresponding node.

sd.1

Standard deviation for corresponding data generated nodes.

Value

Vector

Author(s)

Md Bahadur Badsha (mbbadshar@gmail.com)

See Also

SimulateData for simulated data generating function.

Examples

Data1P <- SimulateData1P(N = 10^3, 
                         P1 = 1, 
                         b0.1 = 0, 
                         b1.1 = 1, 
                         sd.1 = 1)

audreyqyfu/mrpc documentation built on April 17, 2022, 7:35 a.m.