안녕하세요,
JMP 내에서 Cramer von 테스트를 수행하는 방법이 있나요? 이걸 시도한 사람 있나요?
저는 JMP에서 Cramer von 테스트를 알지 못하지만 JMP/Python 인터페이스를 사용하여 Python에서 실행하는 것은 간단한 문제입니다.
names default to here(1);
dt =
// Open Data Table: semiconductor capability.jmp
// → Data Table( "semiconductor capability" )
Open( "$SAMPLE_DATA/big class.jmp" );
data = (dt:height << get values);
python send(data);
python submit("
print( data )
");
python submit("
from scipy.stats import cramervonmises
# Example data
import numpy as np
np.random.seed(0)
# data = np.random.normal(loc=0, scale=1, size=100)
# Test against normal distribution
result = cramervonmises(data, 'norm')
print(result)
");
위의 내용은 Python이 통합된 JMP 18에 적용됩니다.
이전 버전에서 실행하려면 약간의 수정만 필요합니다.
names default to here(1);
dt =
// Open Data Table: semiconductor capability.jmp
// → Data Table( "semiconductor capability" )
dt = Open( "$SAMPLE_DATA/big class.jmp" );
python init();
data = (dt:height << get values)`;
python send(data);
python submit("
print( data )
");
python submit("
from scipy.stats import cramervonmises
# Example data
import numpy as np
np.random.seed(0)
# data = np.random.normal(loc=0, scale=1, size=100)
# Test against normal distribution
result = cramervonmises(data, 'norm')
print(result)
");