帮助完成这个简单的通过 x 拟合 y 的脚本你好。 我尝试研究一个定量变量与多个定量变量的关系。 我写了这个脚本,但它不起作用。 我向您展示脚本和错误消息。 先感谢您。
脚本
名称默认为此处( 1 );
dt = 当前数据表();
numericColNames = dt << 获取列名称(字符串,数字);
For( i = 38, i <= N Items( numericColNames ), i++,
双变量(
Y( :名称( "ERC [%]" ) ),
X( (__col__) ),
拟合线( {报告( 0 ), 线条颜色( {212, 73, 88} ), 报告( 0 )} )
);
);
错误
名称默认为此处( 1 );
dt = 当前数据表();
numericColNames = dt << 获取列名称(字符串,数字);
For( i = 38, i <= N Items( numericColNames ), i++,
双变量(
Y( :名称( "ERC [%]" ) ),
X( (__col__) ),
拟合线( {报告( 0 ), 线条颜色( {212, 73, 88} ), 报告( 0 )} )
);
);
数据探索和可视化回复:帮助这个简单的 y by x 脚本我认为您不记得添加错误消息。 另外,在发布脚本时,您应该使用
因为它使可读性更好(我确实编辑了您的消息以使用它)。
回复:帮助完成这个用 x 拟合 y 的简单脚本只需查看您的脚本,除了复制双变量 IF 您在某处正确定义了 __col__ 之外,您似乎没有使用循环执行任何操作( i 没有被使用)。 如果你改变也许就足够了
X((__col__))
到
X(Eval(numericColNames[i])),
回复:帮助这个简单的 y by x 脚本Names Default To Here( 1 );
dt = Current Data Table();
numericColNames = dt << get column names( string, numeric );
For( i = 38, i <= N Items( numericColNames ), i++,
Bivariate(
Y( :Name( "ERC [%]" ) ),
X( (__col__) ),
Fit Line( {Report( 0 ), Line Color( {212, 73, 88} ), Report( 0 )} )
);
);
Not Found in access or evaluation of 'Bivariate' , Bad Argument( {__col__, Role requires at least 1 columns.} ), Bivariate(/*###*/Y( :Name( "ERC [%]" ) ),
X( __col__ ),
Fit Line( {Report( 0 ), Line Color( {212, 73, 88} ), Report( 0 )} )
)
回复:帮助这个简单的 y by x 脚本对不起。
回复:帮助这个简单的 y by x 脚本好吧,我认为问题是我在第二个回复中所解释的。 如果你想让它更明显一点,你可以定义 __xcol__
Names Default To Here(1);
dt = Current Data Table();
numericColNames = dt << get column names(string, numeric);
For(i = 38, i <= N Items(numericColNames), i++,
__col__ = numericColNames[i];
Bivariate(
Y(:Name("ERC [%]")),
X(Eval(__col__)),
Fit Line({Report(0), Line Color({212, 73, 88}), Report(0)})
);
);
此外,如果您使用 JMP16+,则使用 For Each 通常比仅使用 For 更好
回复:帮助这个简单的 y by x 脚本从 9 点到 14 点真是太棒了。 有了14个我就非常高兴了。 太感谢了